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
Required methods
fn push_front_async(&self, value: Self::AsyncItem) -> Self::PushBackFuture
[src]
Adds to the front of the queue asynchronously
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 AsyncCustomDoubleEndedQueue<Q, MQ> where
Q: DoubleEndedQueue + Send + Sync + 'static,
MQ: Queue<Item = AsyncQueueMessage<Q::Item>> + Send + Sync + 'static,
[src]type PushBackFuture = CompleteFuture
fn push_front_async(&self, value: Self::AsyncItem) -> Self::PushBackFuture
[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<Q, MQ> AsyncPrependQueue for AsyncCustomPrependQueue<Q, MQ> where
Q: PrependQueue + Send + Sync + 'static,
MQ: Queue<Item = AsyncQueueMessage<Q::Item>> + Send + Sync + 'static,
[src]type PushBackFuture = CompleteFuture
fn push_front_async(&self, value: Self::AsyncItem) -> Self::PushBackFuture
[src]
impl<T: ?Sized> AsyncPrependQueue for T where
T: Deref,
T::Target: AsyncPrependQueue,
[src]
impl<T: ?Sized> AsyncPrependQueue for T where
T: Deref,
T::Target: AsyncPrependQueue,
[src]