Struct console_api::tasks::Stats
source · [−]pub struct Stats {
pub created_at: Option<Timestamp>,
pub dropped_at: Option<Timestamp>,
pub wakes: u64,
pub waker_clones: u64,
pub waker_drops: u64,
pub last_wake: Option<Timestamp>,
pub poll_stats: Option<PollStats>,
pub self_wakes: u64,
}Expand description
Task performance statistics.
Fields
created_at: Option<Timestamp>Timestamp of when the task was spawned.
dropped_at: Option<Timestamp>Timestamp of when the task was dropped.
wakes: u64The total number of times this task has been woken over its lifetime.
waker_clones: u64The total number of times this task’s waker has been cloned.
waker_drops: u64The total number of times this task’s waker has been dropped.
last_wake: Option<Timestamp>The timestamp of the most recent time this task has been woken.
If this is None, the task has not yet been woken.
poll_stats: Option<PollStats>Contains task poll statistics.
self_wakes: u64The total number of times this task has woken itself.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
Auto Trait Implementations
impl RefUnwindSafe for Stats
impl UnwindSafe for Stats
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more