Skip to main content

inet_in

Function inet_in 

Source
pub fn inet_in(text: &str, cidr: bool) -> Result<Inet, TypeError>
Expand description

The text input of inet and cidr. A value with a colon is IPv6. The input of inet takes an IPv4 address with no mask length only when it has the four octets, and the input of cidr takes fewer octets and finds the mask length from the class of the address.

ยงErrors

22P02 for a value that is not an address, and for a cidr value with bits set to the right of the mask.