[][src]Enum threads_pool::ExecutionError

pub enum ExecutionError {
    Timeout,
    Uninitialized,
    Disconnected,
    PoolPoisoned,
}

Enumeration to indicate possible reasons a job execution request is rejected. User will need to resubmit the job again, since closure's state may have been stale at the execution error.

Variants

Timeout

The job can't be executed because the queue is full when the new job is submitted and no new worker becomes available before predetermined timeout period.

Uninitialized

The pool hasn't been initialized (i.e. lazy created), or all workers have been terminated, such that there is no working threads to execute the job

Disconnected

The pool is shutting down, or the internal pipeline is broken for whatever reasons.

PoolPoisoned

Pool's internal states have been corrupted

Trait Implementations

impl Debug for ExecutionError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.