pub struct LoopbackQueue { /* private fields */ }Trait Implementations§
Source§impl InspectMut for LoopbackQueue
impl InspectMut for LoopbackQueue
Source§fn inspect_mut(&mut self, req: Request<'_>)
fn inspect_mut(&mut self, req: Request<'_>)
Inspects the object.
Source§impl Queue for LoopbackQueue
impl Queue for LoopbackQueue
Source§fn poll_ready(
&mut self,
_cx: &mut Context<'_>,
_pool: &mut dyn BufferAccess,
) -> Poll<()>
fn poll_ready( &mut self, _cx: &mut Context<'_>, _pool: &mut dyn BufferAccess, ) -> Poll<()>
Polls the queue for readiness.
Source§fn rx_avail(&mut self, _pool: &mut dyn BufferAccess, done: &[RxId])
fn rx_avail(&mut self, _pool: &mut dyn BufferAccess, done: &[RxId])
Makes receive buffers available for use by the device.
Source§fn rx_poll(
&mut self,
_pool: &mut dyn BufferAccess,
packets: &mut [RxId],
) -> Result<usize>
fn rx_poll( &mut self, _pool: &mut dyn BufferAccess, packets: &mut [RxId], ) -> Result<usize>
Polls the device for receives.
Source§fn tx_avail(
&mut self,
pool: &mut dyn BufferAccess,
segments: &[TxSegment],
) -> Result<(bool, usize)>
fn tx_avail( &mut self, pool: &mut dyn BufferAccess, segments: &[TxSegment], ) -> Result<(bool, usize)>
Posts transmits to the device. Read more
Source§fn tx_poll(
&mut self,
_pool: &mut dyn BufferAccess,
_done: &mut [TxId],
) -> Result<usize, TxError>
fn tx_poll( &mut self, _pool: &mut dyn BufferAccess, _done: &mut [TxId], ) -> Result<usize, TxError>
Polls the device for transmit completions.
Source§fn update_target_vp<'life0, 'async_trait>(
&'life0 mut self,
target_vp: u32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_target_vp<'life0, 'async_trait>(
&'life0 mut self,
target_vp: u32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Updates the queue’s target VP.
Source§fn queue_stats(&self) -> Option<&dyn BackendQueueStats>
fn queue_stats(&self) -> Option<&dyn BackendQueueStats>
Get queue statistics
Auto Trait Implementations§
impl Freeze for LoopbackQueue
impl RefUnwindSafe for LoopbackQueue
impl Send for LoopbackQueue
impl Sync for LoopbackQueue
impl Unpin for LoopbackQueue
impl UnwindSafe for LoopbackQueue
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