#[repr(u8)]pub enum IndexedCounterId {
DecoderElapsedNs = 0,
DecoderSubchunksEmitted = 1,
}Expand description
An additive counter that exists once per caller-owned slot.
The caller owns the labels. A decoder registry knows slot three is base64, so the profiler stores sixteen numbers and never a string, which is what keeps the record path allocation-free and hash-free.
Variants§
DecoderElapsedNs = 0
Nanoseconds spent inside one decoder slot.
DecoderSubchunksEmitted = 1
Sub-chunks one decoder slot produced.
Implementations§
Trait Implementations§
Source§impl Clone for IndexedCounterId
impl Clone for IndexedCounterId
Source§fn clone(&self) -> IndexedCounterId
fn clone(&self) -> IndexedCounterId
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 IndexedCounterId
Source§impl Debug for IndexedCounterId
impl Debug for IndexedCounterId
Source§impl<'de> Deserialize<'de> for IndexedCounterId
impl<'de> Deserialize<'de> for IndexedCounterId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexedCounterId
Source§impl Hash for IndexedCounterId
impl Hash for IndexedCounterId
Source§impl Ord for IndexedCounterId
impl Ord for IndexedCounterId
Source§fn cmp(&self, other: &IndexedCounterId) -> Ordering
fn cmp(&self, other: &IndexedCounterId) -> 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 IndexedCounterId
impl PartialEq for IndexedCounterId
Source§impl PartialOrd for IndexedCounterId
impl PartialOrd for IndexedCounterId
Source§impl Serialize for IndexedCounterId
impl Serialize for IndexedCounterId
impl StructuralPartialEq for IndexedCounterId
Auto Trait Implementations§
impl Freeze for IndexedCounterId
impl RefUnwindSafe for IndexedCounterId
impl Send for IndexedCounterId
impl Sync for IndexedCounterId
impl Unpin for IndexedCounterId
impl UnsafeUnpin for IndexedCounterId
impl UnwindSafe for IndexedCounterId
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