pub struct RealTimeMonitor {
pub name: String,
pub snapshots: Vec<(u64, String, f64)>,
pub capacity: usize,
}Expand description
A simple real-time monitor that collects snapshots of key metrics.
Fields§
§name: StringName of the monitor.
snapshots: Vec<(u64, String, f64)>Collected metric snapshots: (timestamp_ns, metric_name, value).
capacity: usizeMaximum snapshots to keep.
Implementations§
Auto Trait Implementations§
impl Freeze for RealTimeMonitor
impl RefUnwindSafe for RealTimeMonitor
impl Send for RealTimeMonitor
impl Sync for RealTimeMonitor
impl Unpin for RealTimeMonitor
impl UnsafeUnpin for RealTimeMonitor
impl UnwindSafe for RealTimeMonitor
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