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§
Sourcefn duplicate_task() -> Self
fn duplicate_task() -> Self
Occurs when given task already exists in task pool.
Sourcefn task_not_found() -> Self
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".