Skip to main content

TaskPoolError

Trait TaskPoolError 

Source
pub trait TaskPoolError {
    // Required methods
    fn duplicate_task() -> Self;
    fn task_not_found() -> Self;
}
Expand description

Represents task pool error type.

Contains constructors for all existing errors.

Required Methods§

Source

fn duplicate_task() -> Self

Occurs when given task already exists in task pool.

Source

fn task_not_found() -> Self

Occurs when task wasn’t found in storage.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§