#[non_exhaustive]pub struct Summary {
pub os: &'static str,
pub kernel: &'static str,
pub cpu: &'static str,
pub cpu_counts: Counts,
pub memory: Option<Memory>,
pub cpu_quota: Option<CpuQuota>,
pub virtualization: &'static Virtualization,
pub form_factor: FormFactor,
pub uptime: Option<Duration>,
pub load: Option<Load>,
}Expand description
See summary. It deliberately carries no host name, user name, MAC
address, or device id, because it is meant for output that leaves the
machine (threat T13).
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.os: &'static str§kernel: &'static str§cpu: &'static str§cpu_counts: Counts§memory: Option<Memory>§cpu_quota: Option<CpuQuota>§virtualization: &'static Virtualization§form_factor: FormFactor§uptime: Option<Duration>§load: Option<Load>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Summary
impl Freeze for Summary
impl Move for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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