#[repr(C, align(4))]pub struct Used {
pub flags: UsedF,
pub idx: le16,
/* private fields */
}
Expand description
The Virtqueue Used Ring
Fields§
§flags: UsedF
§idx: le16
Implementations§
Source§impl Used
impl Used
pub fn new(queue_size: u16, has_event_idx: bool) -> Box<Self>
Available on crate feature
alloc
only.pub fn try_new( queue_size: u16, has_event_idx: bool, ) -> Result<Box<Self>, AllocError>
Available on crate feature
alloc
only.pub fn new_in<A: Allocator>( queue_size: u16, has_event_idx: bool, alloc: A, ) -> Box<Self, A>
Available on crate feature
alloc
only.pub fn try_new_in<A: Allocator>( queue_size: u16, has_event_idx: bool, alloc: A, ) -> Result<Box<Self, A>, AllocError>
Available on crate feature
alloc
only.