Struct chan::Choose [] [src]

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

Methods

impl<'a, T> Choose<'a, T>
[src]

fn new() -> Choose<'a, T>

fn recv<C>(self, chan: C) -> Choose<'a, T> where C: Channel<Item=T> + 'a

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

fn try_choose(&mut self) -> Result<Option<T>, ()>

Trait Implementations

impl<'a, T> Drop for Choose<'a, T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more