Trait netstack3_core::device::socket::NonSyncContext
source · pub trait NonSyncContext<DeviceId>: DeviceSocketTypes {
// Required method
fn receive_frame(
&self,
socket: &Self::SocketState,
device: &DeviceId,
frame: Frame<&[u8]>,
raw_frame: &[u8]
);
}
Expand description
Non-sync context for packet sockets.
Required Methods§
sourcefn receive_frame(
&self,
socket: &Self::SocketState,
device: &DeviceId,
frame: Frame<&[u8]>,
raw_frame: &[u8]
)
fn receive_frame( &self, socket: &Self::SocketState, device: &DeviceId, frame: Frame<&[u8]>, raw_frame: &[u8] )
Called for each received frame that matches the provided socket.
frame
and raw_frame
are parsed and raw views into the same data.