Enum eventual::AsyncError
[−]
[src]
pub enum AsyncError<E: Send + 'static> { Failed(E), Aborted, }
Variants
Failed(E)
Aborted
Methods
impl<E: Send + 'static> AsyncError<E>
[src]
fn failed(err: E) -> AsyncError<E>
fn aborted() -> AsyncError<E>
fn is_aborted(&self) -> bool
fn is_failed(&self) -> bool
fn unwrap(self) -> E
fn take(self) -> Option<E>
Trait Implementations
impl<E: Eq + Send + 'static> Eq for AsyncError<E>
[src]
impl<E: PartialEq + Send + 'static> PartialEq for AsyncError<E>
[src]
fn eq(&self, __arg_0: &AsyncError<E>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AsyncError<E>) -> bool
This method tests for !=
.
impl<E: Send + Error + 'static> Error for AsyncError<E>
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more