Struct project4::virtio::virt_queue::VirtQueueFetcher
source · pub struct VirtQueueFetcher<'a, T>where
T: Deref<Target = [VirtQueueEntry]>,{ /* private fields */ }
Expand description
Fetcher object for the virtqueue.
Implementations§
source§impl<'a> VirtQueueFetcher<'a, &'static [VirtQueueEntry]>
impl<'a> VirtQueueFetcher<'a, &'static [VirtQueueEntry]>
sourcepub fn pop_back(&mut self) -> Option<VirtQueueEntry>
pub fn pop_back(&mut self) -> Option<VirtQueueEntry>
Pop a single entry to the virtqueue.
source§impl<'a> VirtQueueFetcher<'a, Box<[VirtQueueEntry]>>
impl<'a> VirtQueueFetcher<'a, Box<[VirtQueueEntry]>>
sourcepub fn push_front(&mut self, value: VirtQueueEntry) -> Result<(), VirtQueueEntry>
pub fn push_front(&mut self, value: VirtQueueEntry) -> Result<(), VirtQueueEntry>
Push a single entry to the virtqueue.
This does not ring the doorbell.
Trait Implementations§
source§impl<'a, T> Debug for VirtQueueFetcher<'a, T>where
T: Deref<Target = [VirtQueueEntry]>,
impl<'a, T> Debug for VirtQueueFetcher<'a, T>where T: Deref<Target = [VirtQueueEntry]>,
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for VirtQueueFetcher<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for VirtQueueFetcher<'a, T>where T: Send,
impl<'a, T> Sync for VirtQueueFetcher<'a, T>where T: Sync,
impl<'a, T> Unpin for VirtQueueFetcher<'a, T>
impl<'a, T> !UnwindSafe for VirtQueueFetcher<'a, T>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more