pub enum WorkerStateError {
NotStarted,
AlreadyStarted,
NotRunning,
NotPaused,
ShuttingDown,
InvalidState(String),
}Expand description
Errors related to worker state transitions
Variants§
NotStarted
Worker not started
AlreadyStarted
Worker already started
NotRunning
Worker is not running
NotPaused
Worker is not paused
ShuttingDown
Worker is shutting down
InvalidState(String)
Invalid state provided
Trait Implementations§
Source§impl Debug for WorkerStateError
impl Debug for WorkerStateError
Source§impl Display for WorkerStateError
impl Display for WorkerStateError
Source§impl Error for WorkerStateError
impl Error for WorkerStateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WorkerStateError
impl RefUnwindSafe for WorkerStateError
impl Send for WorkerStateError
impl Sync for WorkerStateError
impl Unpin for WorkerStateError
impl UnwindSafe for WorkerStateError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more