Trait batch_recv::BatchRecv [] [src]

pub trait BatchRecv<'a>: TryIterRecv<'a> {
    fn batch_recv(
        &'a self,
        n: usize
    ) -> Result<BatchIter<Self::Iter>, Self::Error> { ... } }

Trait which provides batched receiving method.

Provided Methods

Creates an iterator yields its first n values. It blocks until the first value comes if the queue is empty.

Implementors