Trait netstack3_ip::raw::RawIpSocketsBindingsContext
source · pub trait RawIpSocketsBindingsContext<I: IpExt, D: StrongDeviceIdentifier>: RawIpSocketsBindingsTypes + Sized {
// Required method
fn receive_packet<B: SplitByteSlice>(
&self,
socket: &RawIpSocketId<I, D::Weak, Self>,
packet: &I::Packet<B>,
device: &D,
);
}
Expand description
Functionality provided by bindings used in the raw IP socket implementation.
Required Methods§
sourcefn receive_packet<B: SplitByteSlice>(
&self,
socket: &RawIpSocketId<I, D::Weak, Self>,
packet: &I::Packet<B>,
device: &D,
)
fn receive_packet<B: SplitByteSlice>( &self, socket: &RawIpSocketId<I, D::Weak, Self>, packet: &I::Packet<B>, device: &D, )
Called for each received IP packet that matches the provided socket.
Object Safety§
This trait is not object safe.