Trait NetworkAddress

Source
pub trait NetworkAddress:
    Clone
    + Copy
    + Debug
    + Display
    + PartialEq
    + Eq
    + PartialOrd
    + Ord {
    const BITS_LEN: u8;
}
Expand description

Network address trait

Required Associated Constants§

Source

const BITS_LEN: u8

Max possible length of the address in bits

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NetworkAddress for Ipv4Addr

Source§

const BITS_LEN: u8 = 32u8

Source§

impl NetworkAddress for Ipv6Addr

Source§

const BITS_LEN: u8 = 128u8

Implementors§