Enum corona::errors::TaskFailed
[−]
[src]
pub enum TaskFailed { Panicked(Box<Any + Send + 'static>), PanicPropagated, Lost, }
The task (coroutine) has failed.
This is used as an error type and represents an unsuccessful coroutine.
Variants
Panicked(Box<Any + Send + 'static>)
There was a panic inside the coroutine.
The coroutine panicked and it was spawned with
spawn_catch_panic
.
PanicPropagated
There was a panic in the coroutine.
However, the panic got re-established inside the coroutine's caller. Observing this result is rare, since usually the propagated panic destroys the owner of the coroutine as well.
Lost
The coroutine was lost.
This can happen in case the tokio_core::reactor::Core
the coroutine was spawned onto was
dropped before the coroutine completed.
Technically, the coroutine panicked, but this special panic is handled differently.
Trait Implementations
impl Debug for TaskFailed
[src]
impl Error for TaskFailed
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more