[−][src]Struct glommio::TaskQueueStats
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]
fn clone(&self) -> TaskQueueStats
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TaskQueueStats
[src]
impl Debug for TaskQueueStats
[src]
Auto Trait Implementations
impl RefUnwindSafe for TaskQueueStats
impl Send for TaskQueueStats
impl Sync for TaskQueueStats
impl Unpin for TaskQueueStats
impl UnwindSafe for TaskQueueStats
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,