#[repr(u8)]pub enum Level {
Off = 0,
Basic = 1,
Kernel = 2,
}Expand description
2026-09-26: The measurement level. Each level measures everything the levels below it measure.
Variants§
Off = 0
2026-09-26: Nothing is measured. Every hot-path entry point is one relaxed atomic load and a return: no clock read, no allocation.
Basic = 1
2026-09-26: Device sampling (L0), scheduler, cache, spec and request instruments (L2–L5), and energy attribution.
Kernel = 2
2026-09-26: Basic plus GPU event spans (L1): every serve lane each
step, and every eager kernel launch on one step in
TelemetryConfig::kernel_span_every.
Implementations§
Trait Implementations§
Source§impl FromStr for Level
impl FromStr for Level
Source§fn from_str(s: &str) -> Result<Self, ConfigError>
fn from_str(s: &str) -> Result<Self, ConfigError>
2026-09-26: Exact, lower-case spellings only: Basic, on and 1
are refused.
Source§type Err = ConfigError
type Err = ConfigError
The associated error which can be returned from parsing.
Source§impl Ord for Level
impl Ord for Level
Source§impl PartialOrd for Level
impl PartialOrd for Level
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.