QueueOwnedT

Trait 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§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§