Function diem_types::network_address::parse_memory
source · pub fn parse_memory(protos: &[Protocol]) -> Option<(u16, &[Protocol])>
Expand description
parse the &[Protocol]
into the "/memory/<port>"
prefix and unparsed
&[Protocol]
suffix.