pub struct Model {
    pub time_elapsed: Duration,
    pub timestamp: SystemTime,
    pub system: SystemModel,
    pub cgroup: CgroupModel,
    pub process: ProcessModel,
    pub network: NetworkModel,
    pub gpu: Option<GpuModel>,
}

Fields

time_elapsed: Durationtimestamp: SystemTimesystem: SystemModelcgroup: CgroupModelprocess: ProcessModelnetwork: NetworkModelgpu: Option<GpuModel>

Implementations

Construct a Model from a Sample and optionally, the last CumulativeSample as well as the Duration since it was collected.

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Calls the given closure and return the result. Read more
Calls the given closure on self.
Calls the given closure on self.
Calls the given closure if condition == true.