pub struct RuntimeStats { /* private fields */ }Expand description
Statistics about runtime resource utilization
Implementations§
Source§impl RuntimeStats
impl RuntimeStats
Sourcepub const fn active_node_count(&self) -> usize
pub const fn active_node_count(&self) -> usize
return a copy of the active node count
Sourcepub const fn active_node_count_mut(&mut self) -> &mut usize
pub const fn active_node_count_mut(&mut self) -> &mut usize
returns a mutable reference to the active node count
Sourcepub const fn active_task_count(&self) -> usize
pub const fn active_task_count(&self) -> usize
return a copy of the active task count
Sourcepub const fn active_task_count_mut(&mut self) -> &mut usize
pub const fn active_task_count_mut(&mut self) -> &mut usize
returns a mutable reference to the active task count
Sourcepub const fn node_count(&self) -> usize
pub const fn node_count(&self) -> usize
return a copy of the node count
Sourcepub const fn node_count_mut(&mut self) -> &mut usize
pub const fn node_count_mut(&mut self) -> &mut usize
returns a mutable reference to the node count
Sourcepub const fn queued_task_count(&self) -> usize
pub const fn queued_task_count(&self) -> usize
return a copy of the queued task count
Sourcepub const fn queued_task_count_mut(&mut self) -> &mut usize
pub const fn queued_task_count_mut(&mut self) -> &mut usize
returns a mutable reference to the queued task count
Sourcepub const fn worker_count(&self) -> usize
pub const fn worker_count(&self) -> usize
return a copy of the worker count
Sourcepub const fn worker_count_mut(&mut self) -> &mut usize
pub const fn worker_count_mut(&mut self) -> &mut usize
returns a mutable reference to the worker count
Sourcepub fn set_active_node_count(&mut self, active_node_count: usize) -> &mut Self
pub fn set_active_node_count(&mut self, active_node_count: usize) -> &mut Self
updates the current active node count and returns a mutable reference to the current instance
Sourcepub fn set_active_task_count(&mut self, active_task_count: usize) -> &mut Self
pub fn set_active_task_count(&mut self, active_task_count: usize) -> &mut Self
updates the current active task count and returns a mutable reference to the current instance
Sourcepub fn set_node_count(&mut self, node_count: usize) -> &mut Self
pub fn set_node_count(&mut self, node_count: usize) -> &mut Self
updates the current node count and returns a mutable reference to the current instance
Sourcepub fn set_queued_task_count(&mut self, queued_task_count: usize) -> &mut Self
pub fn set_queued_task_count(&mut self, queued_task_count: usize) -> &mut Self
updates the current queued task count and returns a mutable reference to the current instance
Sourcepub fn set_worker_count(&mut self, worker_count: usize) -> &mut Self
pub fn set_worker_count(&mut self, worker_count: usize) -> &mut Self
updates the current worker count and returns a mutable reference to the current instance
Sourcepub fn with_active_node_count(self, active_node_count: usize) -> Self
pub fn with_active_node_count(self, active_node_count: usize) -> Self
consumes the current instance to create another with the given active node count
Sourcepub fn with_active_task_count(self, active_task_count: usize) -> Self
pub fn with_active_task_count(self, active_task_count: usize) -> Self
consumes the current instance to create another with the given active task count
Sourcepub fn with_node_count(self, node_count: usize) -> Self
pub fn with_node_count(self, node_count: usize) -> Self
consumes the current instance to create another with the given node count
Sourcepub fn with_queued_task_count(self, queued_task_count: usize) -> Self
pub fn with_queued_task_count(self, queued_task_count: usize) -> Self
consumes the current instance to create another with the given queued task count
Sourcepub fn with_worker_count(self, worker_count: usize) -> Self
pub fn with_worker_count(self, worker_count: usize) -> Self
consumes the current instance to create another with the given worker count
Trait Implementations§
Source§impl Clone for RuntimeStats
impl Clone for RuntimeStats
Source§fn clone(&self) -> RuntimeStats
fn clone(&self) -> RuntimeStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeStats
impl Debug for RuntimeStats
Source§impl Default for RuntimeStats
impl Default for RuntimeStats
Source§fn default() -> RuntimeStats
fn default() -> RuntimeStats
Source§impl<'de> Deserialize<'de> for RuntimeStats
impl<'de> Deserialize<'de> for RuntimeStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for RuntimeStats
impl Hash for RuntimeStats
Source§impl Ord for RuntimeStats
impl Ord for RuntimeStats
Source§fn cmp(&self, other: &RuntimeStats) -> Ordering
fn cmp(&self, other: &RuntimeStats) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RuntimeStats
impl PartialEq for RuntimeStats
Source§impl PartialOrd for RuntimeStats
impl PartialOrd for RuntimeStats
Source§impl Serialize for RuntimeStats
impl Serialize for RuntimeStats
impl Copy for RuntimeStats
impl Eq for RuntimeStats
impl StructuralPartialEq for RuntimeStats
Auto Trait Implementations§
impl Freeze for RuntimeStats
impl RefUnwindSafe for RuntimeStats
impl Send for RuntimeStats
impl Sync for RuntimeStats
impl Unpin for RuntimeStats
impl UnwindSafe for RuntimeStats
Blanket Implementations§
Source§impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
impl<K, S> Identity<K> for Swhere
S: Borrow<K>,
K: Identifier,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more