Struct io_uring::squeue::AvailableQueue [−][src]
A snapshot of the submission 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 submission queue ring buffer.
pub fn len(&self) -> usize[src]
Get the number of submission queue events in the ring buffer.
pub fn is_empty(&self) -> bool[src]
Returns true if the submission queue ring buffer is empty.
pub fn is_full(&self) -> bool[src]
Returns true if the submission queue ring buffer has reached capacity, and no more events
can be added before the kernel consumes some.
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 and will
be valid for the entire duration of the operation, otherwise it may cause memory problems.
pub unsafe fn push_multiple(
&mut self,
entries: &[Entry]
) -> Result<(), Insufficient>[src]
&mut self,
entries: &[Entry]
) -> Result<(), Insufficient>
Trait Implementations
impl Drop for AvailableQueue<'_>[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,