Function ipnet::ipv6_mask_to_prefix
source · pub fn ipv6_mask_to_prefix(mask: Ipv6Addr) -> Result<u8, PrefixLenError>
Expand description
Converts a Ipv6Addr
network mask into a prefix.
Errors
If the mask is invalid this will return an PrefixLenError
.