pub enum WorkerStatus {
Idle,
Busy(String),
Stopped,
Error(String),
}
Expand description
Current status of a worker in the pool.
Tracks the state of individual workers from creation through execution and potential error conditions.
Variants§
Idle
Worker is available and waiting for tasks
Busy(String)
Worker is executing a task (contains task ID)
Stopped
Worker has been stopped and is no longer available
Error(String)
Worker encountered an error (contains error message)
Trait Implementations§
Source§impl Clone for WorkerStatus
impl Clone for WorkerStatus
Source§fn clone(&self) -> WorkerStatus
fn clone(&self) -> WorkerStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for WorkerStatus
impl RefUnwindSafe for WorkerStatus
impl Send for WorkerStatus
impl Sync for WorkerStatus
impl Unpin for WorkerStatus
impl UnwindSafe for WorkerStatus
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