pub trait RawIpSocketsBindingsContext<I, D>: Sized + RawIpSocketsBindingsTypeswhere
I: IpExt,
D: StrongDeviceIdentifier,{
// 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§
sourcefn receive_packet<B>(
&self,
socket: &RawIpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>,
packet: &<I as IpExt>::Packet<B>,
device: &D,
)where
B: SplitByteSlice,
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.