Trait concurrency_traits::queue::AsyncReverseQueue[][src]

pub trait AsyncReverseQueue: TryReverseQueue + AsyncQueue {
    #[must_use]
    fn pop_back_async<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Self::Item> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

An asynchronous queue that can be read in reverse

Required methods

#[must_use]
fn pop_back_async<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Self::Item> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Reads the back of the queue

Implementors

impl<T, S, CS> AsyncReverseQueue for SemaphoreQueue<T, S, CS> where
    T: Send,
    S: AsyncSemaphore + Send + Sync,
    CS: ThreadFunctions
[src]

fn pop_back_async<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Self::Item> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]