pub struct HistoryConfig {
pub interval: Duration,
pub duration: Duration,
pub top_contributors_per_metric: usize,
pub memory_budget_bytes: u64,
}Expand description
The requested history configuration, before validation.
Mirrors the [sampling] and [processes] keys in §12. Out-of-range values
are clamped rather than rejected, and every clamp is reported so the UI can
warn (§8.5); a configuration mistake must not stop monitrs from starting.
Fields§
§interval: DurationRequested interval between retained samples.
duration: DurationRequested span of history to keep.
top_contributors_per_metric: usizeRequested contributors retained per metric per sample.
memory_budget_bytes: u64Requested ceiling on history memory use.
Trait Implementations§
Source§impl Clone for HistoryConfig
impl Clone for HistoryConfig
Source§fn clone(&self) -> HistoryConfig
fn clone(&self) -> HistoryConfig
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 HistoryConfig
Source§impl Debug for HistoryConfig
impl Debug for HistoryConfig
Source§impl Default for HistoryConfig
impl Default for HistoryConfig
impl Eq for HistoryConfig
Source§impl PartialEq for HistoryConfig
impl PartialEq for HistoryConfig
impl StructuralPartialEq for HistoryConfig
Auto Trait Implementations§
impl Freeze for HistoryConfig
impl RefUnwindSafe for HistoryConfig
impl Send for HistoryConfig
impl Sync for HistoryConfig
impl Unpin for HistoryConfig
impl UnsafeUnpin for HistoryConfig
impl UnwindSafe for HistoryConfig
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