Struct netstack3_device::queue::ReceiveQueueApi
source · pub struct ReceiveQueueApi<D, C>(/* private fields */);
Expand description
/// An API to interact with device D
receive queues.
Implementations§
source§impl<D, C> ReceiveQueueApi<D, C>
impl<D, C> ReceiveQueueApi<D, C>
sourcepub fn new(ctx: C) -> Self
pub fn new(ctx: C) -> Self
Creates a new ReceiveQueueApi
from ctx
.
source§impl<D, C> ReceiveQueueApi<D, C>where
D: Device,
C: ContextPair,
C::BindingsContext: ReceiveQueueBindingsContext<<C::CoreContext as DeviceIdContext<D>>::DeviceId>,
C::CoreContext: ReceiveDequeContext<D, C::BindingsContext>,
impl<D, C> ReceiveQueueApi<D, C>where
D: Device,
C: ContextPair,
C::BindingsContext: ReceiveQueueBindingsContext<<C::CoreContext as DeviceIdContext<D>>::DeviceId>,
C::CoreContext: ReceiveDequeContext<D, C::BindingsContext>,
sourcepub fn handle_queued_frames(
&mut self,
device_id: &<C::CoreContext as DeviceIdContext<D>>::DeviceId,
) -> WorkQueueReport
pub fn handle_queued_frames( &mut self, device_id: &<C::CoreContext as DeviceIdContext<D>>::DeviceId, ) -> WorkQueueReport
Handle a batch of queued RX packets for the device.
If packets remain in the RX queue after a batch of RX packets has been
handled, the RX task will be scheduled to run again so the next batch of
RX packets may be handled. See
ReceiveQueueBindingsContext::wake_rx_task
for more details.
Auto Trait Implementations§
impl<D, C> Freeze for ReceiveQueueApi<D, C>where
C: Freeze,
impl<D, C> RefUnwindSafe for ReceiveQueueApi<D, C>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<D, C> Send for ReceiveQueueApi<D, C>
impl<D, C> Sync for ReceiveQueueApi<D, C>
impl<D, C> Unpin for ReceiveQueueApi<D, C>
impl<D, C> UnwindSafe for ReceiveQueueApi<D, C>where
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more