#[repr(C)]pub struct Avail {
pub flags: AvailF,
pub idx: le16,
/* private fields */
}Expand description
The Virtqueue Available Ring
Fields§
§flags: AvailF§idx: le16Implementations§
Source§impl Avail
impl Avail
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.