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- theGuestMemoryobject 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.
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.