Trait IpProtocol

Source
pub trait IpProtocol: Protocol + Eq {
    // Required methods
    fn v4() -> Self;
    fn v6() -> Self;

    // Provided methods
    fn is_v4(&self) -> bool { ... }
    fn is_v6(&self) -> bool { ... }
}

Required Methods§

Source

fn v4() -> Self

Source

fn v6() -> Self

Provided Methods§

Source

fn is_v4(&self) -> bool

Source

fn is_v6(&self) -> bool

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§