pub struct WorkerStats {
pub id: usize,
pub tasks_completed: u64,
pub tasks_stolen: u64,
pub tasks_stolen_from: u64,
pub queue_length: usize,
pub idle: bool,
}Expand description
Worker statistics summary.
Fields§
§id: usizeWorker ID.
tasks_completed: u64Tasks completed.
tasks_stolen: u64Tasks stolen by this worker.
tasks_stolen_from: u64Tasks stolen from this worker.
queue_length: usizeCurrent queue length.
idle: boolWhether idle.
Trait Implementations§
Source§impl Clone for WorkerStats
impl Clone for WorkerStats
Source§fn clone(&self) -> WorkerStats
fn clone(&self) -> WorkerStats
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 moreSource§impl Debug for WorkerStats
impl Debug for WorkerStats
Auto Trait Implementations§
impl Freeze for WorkerStats
impl RefUnwindSafe for WorkerStats
impl Send for WorkerStats
impl Sync for WorkerStats
impl Unpin for WorkerStats
impl UnsafeUnpin for WorkerStats
impl UnwindSafe for WorkerStats
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