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