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

There was a panic inside the coroutine.

The coroutine panicked and it was spawned with spawn_catch_panic.

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.

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]

[src]

Formats the value using the given formatter.

impl Error for TaskFailed
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl Display for TaskFailed
[src]

[src]

Formats the value using the given formatter. Read more