Struct glommio::TaskQueueStats
source · pub struct TaskQueueStats { /* private fields */ }
Expand description
Allows information about the current state of a particular task queue to be consumed by applications.
Implementations§
source§impl TaskQueueStats
impl TaskQueueStats
sourcepub fn index(&self) -> TaskQueueHandle
pub fn index(&self) -> TaskQueueHandle
Returns a numeric ID that uniquely identifies this Task queue
Returns the current number of shares in this task queue.
If the task queue is configured to use static shares this will never change. If the task queue is configured to use dynamic shares, this returns a sample of the shares values the last time the scheduler ran.
sourcepub fn runtime(&self) -> Duration
pub fn runtime(&self) -> Duration
Returns the accumulated runtime this task queue had received since the beginning of its execution
sourcepub fn queue_selected(&self) -> u64
pub fn queue_selected(&self) -> u64
Returns the number of times this queue was selected to be executed. In conjunction with the runtime, you can extract an average of the amount of time this queue tends to run for
Trait Implementations§
source§impl Clone for TaskQueueStats
impl Clone for TaskQueueStats
source§fn clone(&self) -> TaskQueueStats
fn clone(&self) -> TaskQueueStats
Returns a copy 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 TaskQueueStats
impl Debug for TaskQueueStats
impl Copy for TaskQueueStats
Auto Trait Implementations§
impl Freeze for TaskQueueStats
impl RefUnwindSafe for TaskQueueStats
impl Send for TaskQueueStats
impl Sync for TaskQueueStats
impl Unpin for TaskQueueStats
impl UnwindSafe for TaskQueueStats
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