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]

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