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.

Object Safety§

This trait is not object safe.

Implementors§