pub struct WindowsSnapshotV2Builder { /* private fields */ }Expand description
Builder for a v2 Windows snapshot.
Implementations§
Source§impl WindowsSnapshotV2Builder
impl WindowsSnapshotV2Builder
pub const fn logical_cores(self, cores: u32) -> Self
pub const fn usage_pct(self, pct: f32) -> Self
pub const fn memory(self, used_bytes: u64, total_bytes: u64) -> Self
pub const fn commit(self, used_bytes: u64, limit_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 WindowsSnapshotV2Builder
impl Clone for WindowsSnapshotV2Builder
Source§fn clone(&self) -> WindowsSnapshotV2Builder
fn clone(&self) -> WindowsSnapshotV2Builder
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 WindowsSnapshotV2Builder
impl Debug for WindowsSnapshotV2Builder
Auto Trait Implementations§
impl Freeze for WindowsSnapshotV2Builder
impl RefUnwindSafe for WindowsSnapshotV2Builder
impl Send for WindowsSnapshotV2Builder
impl Sync for WindowsSnapshotV2Builder
impl Unpin for WindowsSnapshotV2Builder
impl UnsafeUnpin for WindowsSnapshotV2Builder
impl UnwindSafe for WindowsSnapshotV2Builder
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