Trait concurrency_traits::AsyncPrependQueue[][src]

pub trait AsyncPrependQueue: AsyncQueue {
    type PushBackFuture: Future<Output = ()>;
    fn push_front_async(&self, value: Self::AsyncItem) -> Self::PushBackFuture;
}

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

Associated Types

type PushBackFuture: Future<Output = ()>[src]

The future returned by prepend_async

Loading content...

Required methods

fn push_front_async(&self, value: Self::AsyncItem) -> Self::PushBackFuture[src]

Adds to the front of the queue asynchronously

Loading content...

Implementors

impl<Q, MQ> AsyncPrependQueue for AsyncCustomDoubleEndedQueue<Q, MQ> where
    Q: DoubleEndedQueue + Send + Sync + 'static,
    MQ: Queue<Item = AsyncQueueMessage<Q::Item>> + Send + Sync + 'static, 
[src]

impl<Q, MQ> AsyncPrependQueue for AsyncCustomPrependQueue<Q, MQ> where
    Q: PrependQueue + Send + Sync + 'static,
    MQ: Queue<Item = AsyncQueueMessage<Q::Item>> + Send + Sync + 'static, 
[src]

impl<T: ?Sized> AsyncPrependQueue for T where
    T: Deref,
    T::Target: AsyncPrependQueue
[src]

Loading content...