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
Required methods
fn peek_async(&self) -> Self::PeekFuture
[src]
Peeks into the queue asynchronously
Implementors
impl<T: ?Sized> AsyncPeekQueue for T where
T: Deref,
T::Target: AsyncPeekQueue,
[src]
impl<T: ?Sized> AsyncPeekQueue for T where
T: Deref,
T::Target: AsyncPeekQueue,
[src]