Trait virtio_queue::QueueOwnedT
source · pub trait QueueOwnedT: QueueT {
// Required methods
fn iter<M>(&mut self, mem: M) -> Result<AvailIter<'_, M>, Error>
where M: Deref,
M::Target: GuestMemory;
fn go_to_previous_position(&mut self);
}
Expand description
Trait to access and manipulate a Virtio queue that’s known to be exclusively accessed by a single execution thread.
Required Methods§
sourcefn iter<M>(&mut self, mem: M) -> Result<AvailIter<'_, M>, Error>
fn iter<M>(&mut self, mem: M) -> Result<AvailIter<'_, M>, Error>
Get a consuming iterator over all available descriptor chain heads offered by the driver.
Arguments
mem
- theGuestMemory
object that can be used to access the queue buffers.
sourcefn go_to_previous_position(&mut self)
fn go_to_previous_position(&mut self)
Undo the last advancement of the next available index field by decrementing its value by one.
Object Safety§
This trait is not object safe.