Struct glommio::TaskQueueStats [−][src]
pub struct TaskQueueStats { /* fields omitted */ }
Allows information about the current state of a particular task queue to be consumed by applications.
Implementations
impl TaskQueueStats
[src]
impl TaskQueueStats
[src]pub fn index(&self) -> usize
[src]
Returns a numeric ID that uniquely identifies this Task queue
pub fn current_shares(&self) -> usize
[src]
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.
pub fn runtime(&self) -> Duration
[src]
Returns the accumulated runtime this task queue had received since the beginning of its execution
pub fn queue_selected(&self) -> u64
[src]
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 runs for
Trait Implementations
impl Clone for TaskQueueStats
[src]
impl Clone for TaskQueueStats
[src]fn clone(&self) -> TaskQueueStats
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TaskQueueStats
[src]
impl Copy for TaskQueueStats
[src]Auto Trait Implementations
impl RefUnwindSafe for TaskQueueStats
impl RefUnwindSafe for TaskQueueStats
impl Send for TaskQueueStats
impl Send for TaskQueueStats
impl Sync for TaskQueueStats
impl Sync for TaskQueueStats
impl Unpin for TaskQueueStats
impl Unpin for TaskQueueStats
impl UnwindSafe for TaskQueueStats
impl UnwindSafe for TaskQueueStats