#[non_exhaustive]pub struct KindSnapshot {
pub kind: CommandKind,
pub turns: u64,
pub over_budget: u64,
pub mean: Duration,
pub longest: Duration,
/* private fields */
}Expand description
One command kind’s holds, as of the moment ActorMetrics::snapshot read it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: CommandKind§turns: u64Turns spent on this kind.
over_budget: u64Turns that exceeded crate::CHUNK_BUDGET. Always 0 for the three
kinds CommandKind::exempt_from_budget names — see there for why.
mean: Duration§longest: DurationThis kind’s longest hold. Distinct from MetricsSnapshot::longest,
which names one command across all kinds and so tends to be permanently
whichever kind is slowest overall.
Implementations§
Source§impl KindSnapshot
impl KindSnapshot
Sourcepub fn buckets(&self) -> &[u64]
pub fn buckets(&self) -> &[u64]
Counts per BUCKET_BOUNDS_MICROS, plus a final overflow bucket.
Pair it with BUCKET_BOUNDS_MICROS to label the axis rather than
hard-coding the bounds; the slice is one longer than that constant,
and the extra trailing element is the overflow bucket.
Trait Implementations§
Source§impl Clone for KindSnapshot
impl Clone for KindSnapshot
Source§fn clone(&self) -> KindSnapshot
fn clone(&self) -> KindSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KindSnapshot
impl Debug for KindSnapshot
impl Eq for KindSnapshot
Source§impl PartialEq for KindSnapshot
impl PartialEq for KindSnapshot
impl StructuralPartialEq for KindSnapshot
Auto Trait Implementations§
impl Freeze for KindSnapshot
impl RefUnwindSafe for KindSnapshot
impl Send for KindSnapshot
impl Sync for KindSnapshot
impl Unpin for KindSnapshot
impl UnsafeUnpin for KindSnapshot
impl UnwindSafe for KindSnapshot
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request