#[must_use]
pub enum Async<M, V> {
Continue(M, V),
Stop,
Timeout(M, SteadyTime),
}
Variants
Continue(M, V)
Stop
Timeout(M, SteadyTime)
Methods
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 done<R, F: FnOnce(M) -> R>(self, f: F) -> Option<R>
Trait Implementations
Formats the value using the given formatter.
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 !=
.