pub struct SystemSample {
pub stat: Stat,
pub meminfo: MemInfo,
pub vmstat: VmStat,
pub slabinfo: SlabInfoMap,
pub hostname: String,
pub disks: DiskMap,
pub btrfs: Option<BtrfsMap>,
pub kernel_version: Option<String>,
pub os_release: Option<String>,
}
Fields§
§stat: Stat
§meminfo: MemInfo
§vmstat: VmStat
§slabinfo: SlabInfoMap
§hostname: String
§disks: DiskMap
§btrfs: Option<BtrfsMap>
§kernel_version: Option<String>
§os_release: Option<String>
Trait Implementations§
Source§impl Clone for SystemSample
impl Clone for SystemSample
Source§fn clone(&self) -> SystemSample
fn clone(&self) -> SystemSample
Returns a copy of the value. Read more
1.0.0 · 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 SystemSample
impl Debug for SystemSample
Source§impl Default for SystemSample
impl Default for SystemSample
Source§fn default() -> SystemSample
fn default() -> SystemSample
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemSample
impl<'de> Deserialize<'de> for SystemSample
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SystemSample
impl PartialEq for SystemSample
Source§impl Serialize for SystemSample
impl Serialize for SystemSample
impl StructuralPartialEq for SystemSample
Auto Trait Implementations§
impl Freeze for SystemSample
impl RefUnwindSafe for SystemSample
impl Send for SystemSample
impl Sync for SystemSample
impl Unpin for SystemSample
impl UnwindSafe for SystemSample
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