pub struct TelemetryConfig { /* private fields */ }Expand description
2026-09-26: A validated telemetry configuration. Its fields are private,
and TelemetryConfig::new (which serving calls) is the only constructor.
Implementations§
Source§impl TelemetryConfig
impl TelemetryConfig
pub fn new( level: Level, device_period: Duration, kernel_span_every: u32, device_index: u32, ) -> Result<Self, ConfigError>
Sourcepub fn serving(level: Level, device_index: u32) -> Self
pub fn serving(level: Level, device_index: u32) -> Self
2026-09-26: The serving configuration: level at
DEVICE_SAMPLE_PERIOD and KERNEL_SPAN_EVERY, sampling NVML device
device_index.
pub fn level(&self) -> Level
pub fn device_period(&self) -> Duration
pub fn kernel_span_every(&self) -> u32
pub fn device_index(&self) -> u32
Trait Implementations§
Source§impl Clone for TelemetryConfig
impl Clone for TelemetryConfig
Source§fn clone(&self) -> TelemetryConfig
fn clone(&self) -> TelemetryConfig
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 TelemetryConfig
impl Debug for TelemetryConfig
Source§impl PartialEq for TelemetryConfig
impl PartialEq for TelemetryConfig
impl Copy for TelemetryConfig
impl Eq for TelemetryConfig
impl StructuralPartialEq for TelemetryConfig
Auto Trait Implementations§
impl Freeze for TelemetryConfig
impl RefUnwindSafe for TelemetryConfig
impl Send for TelemetryConfig
impl Sync for TelemetryConfig
impl Unpin for TelemetryConfig
impl UnwindSafe for TelemetryConfig
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> 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.