#[non_exhaustive]pub enum SubMsStageKind {
HotPath,
BatchOp,
OneShot,
Unspecified,
}Expand description
What kind of operation a stage records. Observers use this to choose histogram bucket boundaries that fit the measurement scale.
HotPath: per-request operations under a sub-ms p99 budget (put,get_hit,enqueue, …).BatchOp: whole-structure / O(n) operations that run rarely - serialize, snapshot, replay, compact, full merge. Cost scales with size.OneShot: setup / teardown timings recorded once or a handful of times. Treated likeBatchOpbut with a lower-resolution histogram cap to avoid an occasional huge value blowing the bucket count.Unspecified: the default when a stage doesn’t declare its kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for SubMsStageKind
impl Clone for SubMsStageKind
Source§fn clone(&self) -> SubMsStageKind
fn clone(&self) -> SubMsStageKind
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 SubMsStageKind
impl Debug for SubMsStageKind
Source§impl Default for SubMsStageKind
impl Default for SubMsStageKind
Source§fn default() -> SubMsStageKind
fn default() -> SubMsStageKind
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubMsStageKind
impl PartialEq for SubMsStageKind
Source§fn eq(&self, other: &SubMsStageKind) -> bool
fn eq(&self, other: &SubMsStageKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SubMsStageKind
impl Eq for SubMsStageKind
impl StructuralPartialEq for SubMsStageKind
Auto Trait Implementations§
impl Freeze for SubMsStageKind
impl RefUnwindSafe for SubMsStageKind
impl Send for SubMsStageKind
impl Sync for SubMsStageKind
impl Unpin for SubMsStageKind
impl UnsafeUnpin for SubMsStageKind
impl UnwindSafe for SubMsStageKind
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