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]

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 Copy for TaskQueueStats[src]

impl Debug for TaskQueueStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.