Trait concurrency_traits::AsyncStack [−][src]
pub trait AsyncStack: TryStack { type PushFuture: Future<Output = ()>; type PopFuture: Future<Output = Self::Item>; fn push_async(&self, value: Self::Item) -> Self::PushFuture; fn pop_async(&self) -> Self::PopFuture; }
A stack with async operations
Associated Types
type PushFuture: Future<Output = ()>
[src]
The future returned by push_async
type PopFuture: Future<Output = Self::Item>
[src]
The future returned by pop_async
Required methods
fn push_async(&self, value: Self::Item) -> Self::PushFuture
[src]
Push an item onto the stack asynchronously
fn pop_async(&self) -> Self::PopFuture
[src]
Pops an item from the stack asynchronously
Implementors
impl<T: ?Sized> AsyncStack for T where
T: Deref,
T::Target: AsyncStack,
[src]
impl<T: ?Sized> AsyncStack for T where
T: Deref,
T::Target: AsyncStack,
[src]