[][src]Struct linux_io_uring::squeue::AvailableQueue

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

Methods

impl<'_> AvailableQueue<'_>[src]

pub fn sync(&mut self)[src]

Sync queue

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

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

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

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

pub unsafe fn push(&mut self, Entry: Entry) -> Result<(), Entry>[src]

Attempts to push an Entry into the queue. If the queue is full, the element is returned back as an error.

Safety

Developers must ensure that parameters of the Entry (such as buffer) are valid, otherwise it may cause memory problems.

Trait Implementations

impl<'_> Drop for AvailableQueue<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for AvailableQueue<'a>

impl<'a> !Send for AvailableQueue<'a>

impl<'a> !Sync for AvailableQueue<'a>

impl<'a> Unpin for AvailableQueue<'a>

impl<'a> !UnwindSafe for AvailableQueue<'a>

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<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.