pub struct QueueStatus {
pub total_tasks: usize,
pub priority_distribution: [usize; 4],
pub available_workers: usize,
pub oldest_task_age: Duration,
}
Expand description
队列状态信息
Fields§
§total_tasks: usize
§priority_distribution: [usize; 4]
§available_workers: usize
§oldest_task_age: Duration
Trait Implementations§
Source§impl Clone for QueueStatus
impl Clone for QueueStatus
Source§fn clone(&self) -> QueueStatus
fn clone(&self) -> QueueStatus
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 QueueStatus
impl RefUnwindSafe for QueueStatus
impl Send for QueueStatus
impl Sync for QueueStatus
impl Unpin for QueueStatus
impl UnwindSafe for QueueStatus
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