Struct io_uring::cqueue::AvailableQueue[][src]

pub struct AvailableQueue<'a> { /* fields omitted */ }

A snapshot of the completion queue.

Implementations

impl AvailableQueue<'_>[src]

pub fn sync(&mut self)[src]

Synchronize this snapshot with the real queue.

pub fn capacity(&self) -> usize[src]

Get the total number of entries in the completion queue ring buffer.

pub fn is_full(&self) -> bool[src]

Returns true if the completion queue is at maximum capacity. If is_feature_nodrop is not set, this will cause any new completion queue events to be dropped by the kernel.

pub fn fill(&mut self, entries: &mut [MaybeUninit<Entry>]) -> usize[src]

Trait Implementations

impl Drop for AvailableQueue<'_>[src]

impl ExactSizeIterator for AvailableQueue<'_>[src]

impl Iterator for AvailableQueue<'_>[src]

type Item = Entry

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for AvailableQueue<'a>[src]

impl<'a> !Send for AvailableQueue<'a>[src]

impl<'a> !Sync for AvailableQueue<'a>[src]

impl<'a> Unpin for AvailableQueue<'a>[src]

impl<'a> !UnwindSafe for AvailableQueue<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.