Trait RawStack

Source
pub trait RawStack {
    type Error: Error;
    type Socket: RawSocket<Error = Self::Error>;

    // Required method
    async fn bind(&self, interface: u32) -> Result<Self::Socket, Self::Error>;
}

Required Associated Types§

Source

type Error: Error

Source

type Socket: RawSocket<Error = Self::Error>

Required Methods§

Source

async fn bind(&self, interface: u32) -> Result<Self::Socket, Self::Error>

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<T> RawStack for &T
where T: RawStack,

Source§

type Error = <T as RawStack>::Error

Source§

type Socket = <T as RawStack>::Socket

Source§

async fn bind(&self, interface: u32) -> Result<Self::Socket, Self::Error>

Source§

impl<T> RawStack for &mut T
where T: RawStack,

Source§

type Error = <T as RawStack>::Error

Source§

type Socket = <T as RawStack>::Socket

Source§

async fn bind(&self, interface: u32) -> Result<Self::Socket, Self::Error>

Implementors§