Trait timely_communication::Pull[][src]

pub trait Pull<T> {
    fn pull(&mut self) -> &mut Option<T>;

    fn recv(&mut self) -> Option<T> { ... }
}

Pulling elements of type T.

Required Methods

Pulls an element and provides the opportunity to take ownership.

The receiver may mutate the result, in particular take ownership of the data by replacing it with other data or even None. If pull returns None this conventionally signals that no more data is available at the moment.

Provided Methods

Takes an Option<T> and leaves None behind.

Implementations on Foreign Types

impl<T, P: ?Sized + Pull<T>> Pull<T> for Box<P>
[src]

Implementors