Trait Afi

Source
pub trait Afi:
    Copy
    + Debug
    + Hash
    + Ord
    + 'static {
    type Octets: Octets;
    type Primitive: Address<Self> + AddressDisplay<Self>;

    // Required method
    fn as_afi() -> Afi;
}
Expand description

An interface for describing an IP address family.

Required Associated Types§

Source

type Octets: Octets

The big-endian byte array representation of addresses of this address family.

Source

type Primitive: Address<Self> + AddressDisplay<Self>

The primitive integer type used to store address values of this address family.

Required Methods§

Source

fn as_afi() -> Afi

Get the concrete::Afi variant associated with Self.

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.

Implementors§