pub struct SubmissionQueue { /* private fields */ }
Implementations§
source§impl SubmissionQueue
impl SubmissionQueue
pub fn new( memory: &mut [u8], nr_entries: u16, stride: usize, ) -> Result<Self, CreateQueueError>
pub fn is_full(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn submit_bytes(&mut self, data: &[u8]) -> Option<u16>
pub fn submit<T: Copy>(&mut self, data: &T) -> Option<u16>
pub fn update_head(&mut self, head: u16)
pub fn len(&self) -> u16
pub fn stride(&self) -> usize
Auto Trait Implementations§
impl Freeze for SubmissionQueue
impl RefUnwindSafe for SubmissionQueue
impl !Send for SubmissionQueue
impl !Sync for SubmissionQueue
impl Unpin for SubmissionQueue
impl UnwindSafe for SubmissionQueue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more