netstack3_core::ip

Trait RawIpSocketsBindingsContext

Source
pub trait RawIpSocketsBindingsContext<I, D>: Sized + RawIpSocketsBindingsTypes{
    // Required method
    fn receive_packet<B>(
        &self,
        socket: &RawIpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>,
        packet: &<I as IpExt>::Packet<B>,
        device: &D,
    )
       where B: SplitByteSlice;
}
Expand description

Functionality provided by bindings used in the raw IP socket implementation.

Required Methods§

Source

fn receive_packet<B>( &self, socket: &RawIpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>, packet: &<I as IpExt>::Packet<B>, device: &D, )
where B: SplitByteSlice,

Called for each received IP packet that matches the provided socket.

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§