Trait batch_recv::TryIterRecv [] [src]

pub trait TryIterRecv<'a> {
    type Iter: Iterator + 'a;
    type Error;
    fn try_iter(&'a self) -> Self::Iter;
fn recv(&self) -> Result<<Self::Iter as Iterator>::Item, Self::Error>; }

Trait for queues which have batch-able receiving method.

This is mainly used by BatchRecv trait.

At first, BatchRecv trait calls recv which blocks the thread until the first value comes.

And then, it calls try_iter to retrieve the following values.

Associated Types

Required Methods

Implementations on Foreign Types

impl<'a, T: 'a> TryIterRecv<'a> for Receiver<T>
[src]

[src]

[src]

Implementors