Enum rotor::async::Async [] [src]

#[must_use]
pub enum Async<M, V> {
    Continue(M, V),
    Stop,
    Timeout(M, SteadyTime),
}

Variants

Continue(M, V)StopTimeout(M, SteadyTime)

Methods

impl<M, V> Async<M, V>
[src]

fn and_then<T, R, F: FnOnce(M) -> Async<T, R>>(self, f: F) -> Async<T, R>

fn map<T, F: FnOnce(M) -> T>(self, f: F) -> Async<T, V>

fn map_result<R, F: FnOnce(V) -> R>(self, f: F) -> Async<M, R>

fn done<R, F: FnOnce(M) -> R>(self, f: F) -> Option<R>

Trait Implementations

impl<M: Debug, V: Debug> Debug for Async<M, V>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<M: Eq, V: Eq> Eq for Async<M, V>
[src]

impl<M: PartialEq, V: PartialEq> PartialEq for Async<M, V>
[src]

fn eq(&self, __arg_0: &Async<M, V>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Async<M, V>) -> bool

This method tests for !=.