pub struct ActiveWorkerInfo {
pub worker_id: Uuid,
pub task_id: String,
pub worker_type: WorkerType,
pub runtime: Duration,
}Expand description
Information about an active worker in the pool.
Contains runtime information about a worker currently executing a task.
Fields§
§worker_id: UuidUnique identifier for the worker
task_id: StringIdentifier of the task being executed
worker_type: WorkerTypeType of work this worker performs
runtime: DurationHow long the worker has been running the current task
Trait Implementations§
Source§impl Clone for ActiveWorkerInfo
impl Clone for ActiveWorkerInfo
Source§fn clone(&self) -> ActiveWorkerInfo
fn clone(&self) -> ActiveWorkerInfo
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 ActiveWorkerInfo
impl RefUnwindSafe for ActiveWorkerInfo
impl Send for ActiveWorkerInfo
impl Sync for ActiveWorkerInfo
impl Unpin for ActiveWorkerInfo
impl UnwindSafe for ActiveWorkerInfo
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