pub struct CompletionQueue { /* private fields */ }
Implementations§
source§impl CompletionQueue
impl CompletionQueue
pub fn new( memory: &[u8], nr_entries: u16, stride: usize, ) -> Result<Self, CreateQueueError>
pub fn stride(&self) -> usize
pub fn ready(&self) -> bool
pub fn get_completion_bytes(&mut self, output: &mut [u8]) -> Option<u16>
pub fn get_completion<T: Copy>(&mut self) -> Option<(u16, T)>
Auto Trait Implementations§
impl Freeze for CompletionQueue
impl RefUnwindSafe for CompletionQueue
impl !Send for CompletionQueue
impl !Sync for CompletionQueue
impl Unpin for CompletionQueue
impl UnwindSafe for CompletionQueue
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