#[non_exhaustive]pub struct SystemSnapshot {
pub created_at: Option<OffsetDateTime>,
pub cpu_used_ratio: Option<f32>,
pub memory_used_bytes: Option<u64>,
}Expand description
A snapshot of host resource usage.
This is a placeholder data carrier; system-information collection is wired in Phase 4.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.created_at: Option<OffsetDateTime>When the snapshot was collected, if known.
cpu_used_ratio: Option<f32>The fraction of CPU capacity in use, if known.
memory_used_bytes: Option<u64>The number of memory bytes in use, if known.
Trait Implementations§
Source§impl Clone for SystemSnapshot
impl Clone for SystemSnapshot
Source§fn clone(&self) -> SystemSnapshot
fn clone(&self) -> SystemSnapshot
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 SystemSnapshot
impl Debug for SystemSnapshot
Source§impl Default for SystemSnapshot
impl Default for SystemSnapshot
Source§fn default() -> SystemSnapshot
fn default() -> SystemSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemSnapshot
impl RefUnwindSafe for SystemSnapshot
impl Send for SystemSnapshot
impl Sync for SystemSnapshot
impl Unpin for SystemSnapshot
impl UnsafeUnpin for SystemSnapshot
impl UnwindSafe for SystemSnapshot
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