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§

source

fn iter<M>(&mut self, mem: M) -> Result<AvailIter<'_, M>, Error>
where M: Deref, M::Target: GuestMemory,

Get a consuming iterator over all available descriptor chain heads offered by the driver.

Arguments
  • mem - the GuestMemory object that can be used to access the queue buffers.
source

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.

Implementors§