Struct sbp::messages::linux::msg_linux_socket_usage::MsgLinuxSocketUsage
source · [−]pub struct MsgLinuxSocketUsage {
pub sender_id: Option<u16>,
pub avg_queue_depth: u32,
pub max_queue_depth: u32,
pub socket_state_counts: [u16; 16],
pub socket_type_counts: [u16; 16],
}
Expand description
Summary of socket usage across the system
Summaries the socket usage across the system.
Fields
sender_id: Option<u16>
The message sender_id
avg_queue_depth: u32
average socket queue depths across all sockets on the system
max_queue_depth: u32
the max queue depth seen within the reporting period
socket_state_counts: [u16; 16]
A count for each socket type reported in the socket_types_reported
field, the first entry corresponds to the first enabled bit in
types_reported
.
socket_type_counts: [u16; 16]
A count for each socket type reported in the socket_types_reported
field, the first entry corresponds to the first enabled bit in
types_reported
.
Trait Implementations
sourceimpl Clone for MsgLinuxSocketUsage
impl Clone for MsgLinuxSocketUsage
sourcefn clone(&self) -> MsgLinuxSocketUsage
fn clone(&self) -> MsgLinuxSocketUsage
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 MsgLinuxSocketUsage
impl ConcreteMessage for MsgLinuxSocketUsage
sourceconst MESSAGE_TYPE: u16 = 32_517u16
const MESSAGE_TYPE: u16 = 32_517u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_LINUX_SOCKET_USAGE"
const MESSAGE_NAME: &'static str = "MSG_LINUX_SOCKET_USAGE"
The message name.
sourceimpl Debug for MsgLinuxSocketUsage
impl Debug for MsgLinuxSocketUsage
sourceimpl From<MsgLinuxSocketUsage> for Sbp
impl From<MsgLinuxSocketUsage> for Sbp
sourcefn from(msg: MsgLinuxSocketUsage) -> Self
fn from(msg: MsgLinuxSocketUsage) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgLinuxSocketUsage
impl SbpMessage for MsgLinuxSocketUsage
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 MsgLinuxSocketUsage
impl Send for MsgLinuxSocketUsage
impl Sync for MsgLinuxSocketUsage
impl Unpin for MsgLinuxSocketUsage
impl UnwindSafe for MsgLinuxSocketUsage
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