Struct sbp::messages::linux::msg_linux_sys_state_dep_a::MsgLinuxSysStateDepA
source · [−]pub struct MsgLinuxSysStateDepA {
pub sender_id: Option<u16>,
pub mem_total: u16,
pub pcpu: u8,
pub pmem: u8,
pub procs_starting: u16,
pub procs_stopping: u16,
pub pid_count: u16,
}
Expand description
CPU, Memory and Process Starts/Stops. DEPRECATED
This presents a summary of CPU and memory utilization.
Fields
sender_id: Option<u16>
The message sender_id
mem_total: u16
total system memory
pcpu: u8
percent of total cpu currently utilized
pmem: u8
percent of total memory currently utilized
procs_starting: u16
number of processes that started during collection phase
procs_stopping: u16
number of processes that stopped during collection phase
pid_count: u16
the count of processes on the system
Trait Implementations
sourceimpl Clone for MsgLinuxSysStateDepA
impl Clone for MsgLinuxSysStateDepA
sourcefn clone(&self) -> MsgLinuxSysStateDepA
fn clone(&self) -> MsgLinuxSysStateDepA
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgLinuxSysStateDepA
impl ConcreteMessage for MsgLinuxSysStateDepA
sourceconst MESSAGE_TYPE: u16 = 32_514u16
const MESSAGE_TYPE: u16 = 32_514u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_LINUX_SYS_STATE_DEP_A"
const MESSAGE_NAME: &'static str = "MSG_LINUX_SYS_STATE_DEP_A"
The message name.
sourceimpl Debug for MsgLinuxSysStateDepA
impl Debug for MsgLinuxSysStateDepA
sourceimpl From<MsgLinuxSysStateDepA> for Sbp
impl From<MsgLinuxSysStateDepA> for Sbp
sourcefn from(msg: MsgLinuxSysStateDepA) -> Self
fn from(msg: MsgLinuxSysStateDepA) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgLinuxSysStateDepA
impl SbpMessage for MsgLinuxSysStateDepA
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgLinuxSysStateDepA
impl Send for MsgLinuxSysStateDepA
impl Sync for MsgLinuxSysStateDepA
impl Unpin for MsgLinuxSysStateDepA
impl UnwindSafe for MsgLinuxSysStateDepA
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more