Function diem_types::network_address::parse_dns_tcp [−][src]
pub fn parse_dns_tcp(
protos: &[Protocol]
) -> Option<((IpFilter, &DnsName, u16), &[Protocol])>
Expand description
parse the &[Protocol]
into the "/dns/<domain>/tcp/<port>"
,
"/dns4/<domain>/tcp/<port>"
, or "/dns6/<domain>/tcp/<port>"
prefix and
unparsed &[Protocol]
suffix.