Trait netstack3_device::queue::ReceiveQueueContext

source ·
pub trait ReceiveQueueContext<D: Device, BC>: ReceiveQueueTypes<D, BC> {
    // Required method
    fn with_receive_queue_mut<O, F: FnOnce(&mut ReceiveQueueState<Self::Meta, Self::Buffer>) -> O>(
        &mut self,
        device_id: &Self::DeviceId,
        cb: F,
    ) -> O;
}
Expand description

The execution context for a receive queue.

Required Methods§

source

fn with_receive_queue_mut<O, F: FnOnce(&mut ReceiveQueueState<Self::Meta, Self::Buffer>) -> O>( &mut self, device_id: &Self::DeviceId, cb: F, ) -> O

Calls the function with the RX queue state.

Object Safety§

This trait is not object safe.

Implementors§