Struct ipnet::PrefixLenError [] [src]

pub struct PrefixLenError;

An error that is returned when the prefix length is invalid. Valid prefix lengths are 0 to 32 for IPv4 and 0 to 128 for IPv6.

This error is used as the error type for the new() and subnets() methods on Ipv4Net and Ipv6Net.

Trait Implementations

impl Debug for PrefixLenError
[src]

[src]

Formats the value using the given formatter.

impl Clone for PrefixLenError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PrefixLenError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for PrefixLenError
[src]

impl Display for PrefixLenError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for PrefixLenError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more