Trait concurrency_traits::queue::AsyncPrependQueue[][src]

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

An async queue that can be prepended (items placed in front)

Required methods

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

Adds to the front of the queue asynchronously

Implementors

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

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