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,
) -> Result<(), ReceivePacketError>
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,
) -> Result<(), ReceivePacketError>where
B: SplitByteSlice,
fn receive_packet<B>(
&self,
socket: &RawIpSocketId<I, <D as StrongDeviceIdentifier>::Weak, Self>,
packet: &<I as IpExt>::Packet<B>,
device: &D,
) -> Result<(), ReceivePacketError>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".