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§
Required Methods§
Sourcefn as_afi() -> Afi
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.