#[repr(u32)]pub enum PerformanceCounterType {
InstructionCounter,
CallContextInstructionCounter,
Unrecognized(u32),
}
Expand description
The type of performance counter.
Variants§
InstructionCounter
Current execution instruction counter.
The number of WebAssembly instructions the canister has executed since the beginning of the current Message execution.
CallContextInstructionCounter
Call context instruction counter
The number of WebAssembly instructions the canister has executed within the call context of the current Message execution since Call context creation. The counter monotonically increases across all message executions in the call context until the corresponding call context is removed.
Unrecognized(u32)
A performance counter type that is not recognized by this library.
Trait Implementations§
Source§impl Clone for PerformanceCounterType
impl Clone for PerformanceCounterType
Source§fn clone(&self) -> PerformanceCounterType
fn clone(&self) -> PerformanceCounterType
Returns a duplicate of the value. Read more
1.0.0 · 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 PerformanceCounterType
impl Debug for PerformanceCounterType
Source§impl From<PerformanceCounterType> for u32
impl From<PerformanceCounterType> for u32
Source§fn from(value: PerformanceCounterType) -> Self
fn from(value: PerformanceCounterType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PerformanceCounterType
impl From<u32> for PerformanceCounterType
Source§impl PartialEq<u32> for PerformanceCounterType
impl PartialEq<u32> for PerformanceCounterType
Source§impl PartialEq for PerformanceCounterType
impl PartialEq for PerformanceCounterType
impl Copy for PerformanceCounterType
impl Eq for PerformanceCounterType
impl StructuralPartialEq for PerformanceCounterType
Auto Trait Implementations§
impl Freeze for PerformanceCounterType
impl RefUnwindSafe for PerformanceCounterType
impl Send for PerformanceCounterType
impl Sync for PerformanceCounterType
impl Unpin for PerformanceCounterType
impl UnwindSafe for PerformanceCounterType
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