pub trait AsyncStack: TryStack {
type PushFuture: Future<Output = ()>;
type PopFuture: Future<Output = Self::Item>;
// Required methods
fn push_async(&self, value: Self::Item) -> Self::PushFuture;
fn pop_async(&self) -> Self::PopFuture;
}
Expand description
A stack with async operations
Required Associated Types§
Sourcetype PushFuture: Future<Output = ()>
type PushFuture: Future<Output = ()>
The future returned by push_async
Required Methods§
Sourcefn push_async(&self, value: Self::Item) -> Self::PushFuture
fn push_async(&self, value: Self::Item) -> Self::PushFuture
Push an item onto the stack asynchronously