pub struct DiskCollector {
device_cache: HashMap<String, DeviceInfo>,
prev: Option<Snapshot>,
zfs_timeout: Duration,
}Fields§
§device_cache: HashMap<String, DeviceInfo>Static hardware identity, cached once in new().
prev: Option<Snapshot>§zfs_timeout: DurationMaximum time to wait for zpool list before skipping ZFS stats.
Set to half the sampling interval so a slow/hung pool never blocks
more than one collection cycle.
Implementations§
Auto Trait Implementations§
impl Freeze for DiskCollector
impl RefUnwindSafe for DiskCollector
impl Send for DiskCollector
impl Sync for DiskCollector
impl Unpin for DiskCollector
impl UnsafeUnpin for DiskCollector
impl UnwindSafe for DiskCollector
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