/tcp/"`, `"/dns4//tcp/"`, or `"/dns6//tcp/"` prefix and unparsed `&[Protocol]` suffix.">parse_dns_tcp in diem_types::network_address - Rust

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.