pub enum CanisterOpsMetricReason {
Show 15 variants
AlreadyExists,
Cycles,
InvalidState,
ManagementCall,
MissingWasm,
NewAllocation,
NotFound,
Ok,
PolicyDenied,
PoolReuse,
PoolTopup,
StatePropagation,
Topology,
TopologyPropagation,
Unknown,
}Expand description
CanisterOpsMetricReason
Bounded canister operation reason dimension used by public metrics projection.
Variants§
AlreadyExists
Cycles
InvalidState
ManagementCall
MissingWasm
NewAllocation
NotFound
Ok
PolicyDenied
PoolReuse
PoolTopup
StatePropagation
Topology
TopologyPropagation
Unknown
Implementations§
Source§impl CanisterOpsMetricReason
impl CanisterOpsMetricReason
Sourcepub const fn metric_label(self) -> &'static str
pub const fn metric_label(self) -> &'static str
Return the stable public metrics label for this reason.
Trait Implementations§
Source§impl Clone for CanisterOpsMetricReason
impl Clone for CanisterOpsMetricReason
Source§fn clone(&self) -> CanisterOpsMetricReason
fn clone(&self) -> CanisterOpsMetricReason
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 moreimpl Copy for CanisterOpsMetricReason
impl Eq for CanisterOpsMetricReason
Source§impl Hash for CanisterOpsMetricReason
impl Hash for CanisterOpsMetricReason
Source§impl Ord for CanisterOpsMetricReason
impl Ord for CanisterOpsMetricReason
Source§fn cmp(&self, other: &CanisterOpsMetricReason) -> Ordering
fn cmp(&self, other: &CanisterOpsMetricReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CanisterOpsMetricReason
impl PartialEq for CanisterOpsMetricReason
Source§fn eq(&self, other: &CanisterOpsMetricReason) -> bool
fn eq(&self, other: &CanisterOpsMetricReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CanisterOpsMetricReason
impl PartialOrd for CanisterOpsMetricReason
impl StructuralPartialEq for CanisterOpsMetricReason
Auto Trait Implementations§
impl Freeze for CanisterOpsMetricReason
impl RefUnwindSafe for CanisterOpsMetricReason
impl Send for CanisterOpsMetricReason
impl Sync for CanisterOpsMetricReason
impl Unpin for CanisterOpsMetricReason
impl UnsafeUnpin for CanisterOpsMetricReason
impl UnwindSafe for CanisterOpsMetricReason
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