Trait netstack3_core::ip::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.

Object Safety§

This trait is not object safe.

Implementors§