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§
Sourcefn with_receive_queue_mut<O, F: FnOnce(&mut ReceiveQueueState<Self::Meta, Self::Buffer>) -> O>(
&mut self,
device_id: &Self::DeviceId,
cb: F,
) -> O
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".