pub struct NodeStats {
pub uid: u32,
pub cpu_user: Option<f64>,
pub cpu_system: Option<f64>,
pub cpu_idle: Option<f64>,
pub free_memory: Option<u64>,
pub network_bytes_in: Option<u64>,
pub network_bytes_out: Option<u64>,
pub persistent_storage_free: Option<u64>,
pub ephemeral_storage_free: Option<u64>,
}Expand description
Node stats
Fields§
§uid: u32Unique identifier (read-only).
cpu_user: Option<f64>User-mode CPU time fraction.
cpu_system: Option<f64>System-mode CPU time fraction.
cpu_idle: Option<f64>Idle CPU time fraction.
free_memory: Option<u64>Free memory in bytes.
network_bytes_in: Option<u64>Incoming network bytes.
network_bytes_out: Option<u64>Outgoing network bytes.
persistent_storage_free: Option<u64>Free persistent storage in bytes.
ephemeral_storage_free: Option<u64>Free ephemeral storage in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeStats
impl<'de> Deserialize<'de> for NodeStats
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
Auto Trait Implementations§
impl Freeze for NodeStats
impl RefUnwindSafe for NodeStats
impl Send for NodeStats
impl Sync for NodeStats
impl Unpin for NodeStats
impl UnsafeUnpin for NodeStats
impl UnwindSafe for NodeStats
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