pub struct LinuxSnapshotV2Builder { /* private fields */ }Expand description
Builder for a v2 Linux snapshot.
Implementations§
Source§impl LinuxSnapshotV2Builder
impl LinuxSnapshotV2Builder
pub const fn logical_cores(self, cores: u32) -> Self
pub const fn usage_pct(self, pct: f32) -> Self
pub const fn iowait_pct(self, pct: f32) -> Self
pub const fn load(self, one: f32, five: f32, fifteen: f32) -> Self
pub const fn memory(self, used_bytes: u64, total_bytes: u64) -> Self
pub const fn swap(self, used_bytes: u64, total_bytes: u64) -> Self
pub fn drives(self, drives: Option<Vec<DriveMetrics>>) -> Self
pub fn build_payload(self) -> StatusPayloadV2
pub fn build(self) -> StatusSnapshotV2
Trait Implementations§
Source§impl Clone for LinuxSnapshotV2Builder
impl Clone for LinuxSnapshotV2Builder
Source§fn clone(&self) -> LinuxSnapshotV2Builder
fn clone(&self) -> LinuxSnapshotV2Builder
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 moreSource§impl Debug for LinuxSnapshotV2Builder
impl Debug for LinuxSnapshotV2Builder
Auto Trait Implementations§
impl Freeze for LinuxSnapshotV2Builder
impl RefUnwindSafe for LinuxSnapshotV2Builder
impl Send for LinuxSnapshotV2Builder
impl Sync for LinuxSnapshotV2Builder
impl Unpin for LinuxSnapshotV2Builder
impl UnsafeUnpin for LinuxSnapshotV2Builder
impl UnwindSafe for LinuxSnapshotV2Builder
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