Trait concurrency_traits::stack::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; }
Expand description
A stack with async operations
Associated Types
type PushFuture: Future<Output = ()>
[src]
type PushFuture: Future<Output = ()>
[src]The future returned by push_async
Required methods
fn push_async(&self, value: Self::Item) -> Self::PushFuture
[src]
fn push_async(&self, value: Self::Item) -> Self::PushFuture
[src]Push an item onto the stack asynchronously