Struct below_model::system::SystemModel
source · pub struct SystemModel {
pub hostname: String,
pub kernel_version: Option<String>,
pub os_release: Option<String>,
pub stat: ProcStatModel,
pub total_cpu: SingleCpuModel,
pub cpus: BTreeMap<u32, SingleCpuModel>,
pub mem: MemoryModel,
pub vm: VmModel,
pub slab: BTreeMap<String, SingleSlabModel>,
pub disks: BTreeMap<String, SingleDiskModel>,
pub btrfs: Option<BTreeMap<String, BtrfsModel>>,
}
Fields§
§hostname: String
§kernel_version: Option<String>
§os_release: Option<String>
§stat: ProcStatModel
§total_cpu: SingleCpuModel
§cpus: BTreeMap<u32, SingleCpuModel>
§mem: MemoryModel
§vm: VmModel
§slab: BTreeMap<String, SingleSlabModel>
§disks: BTreeMap<String, SingleDiskModel>
§btrfs: Option<BTreeMap<String, BtrfsModel>>
Implementations§
source§impl SystemModel
impl SystemModel
pub fn new( sample: &SystemSample, last: Option<(&SystemSample, Duration)> ) -> SystemModel
Trait Implementations§
source§impl Clone for SystemModel
impl Clone for SystemModel
source§fn clone(&self) -> SystemModel
fn clone(&self) -> SystemModel
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 SystemModel
impl Debug for SystemModel
source§impl Default for SystemModel
impl Default for SystemModel
source§fn default() -> SystemModel
fn default() -> SystemModel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SystemModel
impl<'de> Deserialize<'de> for SystemModel
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 Nameable for SystemModel
impl Nameable for SystemModel
source§impl PartialEq for SystemModel
impl PartialEq for SystemModel
source§fn eq(&self, other: &SystemModel) -> bool
fn eq(&self, other: &SystemModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Queriable for SystemModel
impl Queriable for SystemModel
source§impl Serialize for SystemModel
impl Serialize for SystemModel
impl StructuralPartialEq for SystemModel
Auto Trait Implementations§
impl Freeze for SystemModel
impl RefUnwindSafe for SystemModel
impl Send for SystemModel
impl Sync for SystemModel
impl Unpin for SystemModel
impl UnwindSafe for SystemModel
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