#[non_exhaustive]pub struct MachineUsage {
pub name: String,
pub cpu_percent: Option<f64>,
pub memory_bytes: Option<u64>,
}Expand description
What one machine of a run uses now, as its engine reports it (several instances of it, a service scaled up, summed).
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.name: StringIts name in the project.
cpu_percent: Option<f64>Its CPU use, in percent of one CPU (over 100 on several); none when the engine has no figure for it yet.
memory_bytes: Option<u64>The memory it uses, in bytes; none when the engine has no figure for it yet.
Implementations§
Trait Implementations§
Source§impl Clone for MachineUsage
impl Clone for MachineUsage
Source§impl Debug for MachineUsage
impl Debug for MachineUsage
Source§impl<'de> Deserialize<'de> for MachineUsage
impl<'de> Deserialize<'de> for MachineUsage
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 MachineUsage
impl PartialEq for MachineUsage
Source§impl Serialize for MachineUsage
impl Serialize for MachineUsage
impl StructuralPartialEq for MachineUsage
Auto Trait Implementations§
impl Forget for MachineUsage
impl Freeze for MachineUsage
impl Move for MachineUsage
impl RefUnwindSafe for MachineUsage
impl Send for MachineUsage
impl Sync for MachineUsage
impl Unpin for MachineUsage
impl UnsafeUnpin for MachineUsage
impl UnwindSafe for MachineUsage
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