Struct std::comm::MessagesUnstable [-]  [+] [src]

pub struct Messages<'a, T: 'a> {
    // some fields omitted
}

An iterator over messages on a receiver, this iterator will block whenever next is called, waiting for a new message, and None will be returned when the corresponding channel has hung up.

Trait Implementations

impl<'a, T: Send> Iterator<T> for Messages<'a, T>

fn next(&mut self) -> Option<T>

fn size_hint(&self) -> (uint, Option<uint>)

fn chain<U: Iterator<T>>(self, U) -> Chain<Messages<'a, T>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Messages<'a, T>, U>

fn map<B>(self, |T| -> B) -> Map<'r, T, B, Messages<'a, T>>

fn filter(self, |&T| -> bool) -> Filter<'r, T, Messages<'a, T>>

fn filter_map<B>(self, |T| -> Option<B>) -> FilterMap<'r, T, B, Messages<'a, T>>

fn enumerate(self) -> Enumerate<Messages<'a, T>>

fn peekable(self) -> Peekable<T, Messages<'a, T>>

fn skip_while(self, |&T| -> bool) -> SkipWhile<'r, T, Messages<'a, T>>

fn take_while(self, |&T| -> bool) -> TakeWhile<'r, T, Messages<'a, T>>

fn skip(self, uint) -> Skip<Messages<'a, T>>

fn take(self, uint) -> Take<Messages<'a, T>>

fn scan<St, B>(self, St, |&mut St, T| -> Option<B>) -> Scan<'r, T, B, Messages<'a, T>, St>

fn flat_map<B, U: Iterator<B>>(self, |T| -> U) -> FlatMap<'r, T, Messages<'a, T>, U>

fn fuse(self) -> Fuse<Messages<'a, T>>

fn inspect(self, |&T|) -> Inspect<'r, T, Messages<'a, T>>

fn by_ref(&'r mut self) -> ByRef<'r, Messages<'a, T>>

fn collect<B: FromIterator<T>>(&mut self) -> B

fn nth(&mut self, uint) -> Option<T>

fn last(&mut self) -> Option<T>

fn fold<B>(&mut self, B, |B, T| -> B) -> B

fn count(&mut self) -> uint

fn all(&mut self, |T| -> bool) -> bool

fn any(&mut self, |T| -> bool) -> bool

fn find(&mut self, |&T| -> bool) -> Option<T>

fn position(&mut self, |T| -> bool) -> Option<uint>

fn max_by<B: Ord>(&mut self, |&T| -> B) -> Option<T>

fn min_by<B: Ord>(&mut self, |&T| -> B) -> Option<T>