Trait concurrency_traits::AsyncPeekQueue[][src]

pub trait AsyncPeekQueue: AsyncQueue {
    type AsyncPeeked;
    type PeekFuture: Future<Output = Self::AsyncPeeked>;
    fn peek_async(&self) -> Self::PeekFuture;
}

An async queue that can be peeked into

Associated Types

type AsyncPeeked[src]

The type that is peeked

type PeekFuture: Future<Output = Self::AsyncPeeked>[src]

The future returned by peek_async

Loading content...

Required methods

fn peek_async(&self) -> Self::PeekFuture[src]

Peeks into the queue asynchronously

Loading content...

Implementors

impl<T: ?Sized> AsyncPeekQueue for T where
    T: Deref,
    T::Target: AsyncPeekQueue
[src]

Loading content...