pub struct DBusStats {
pub serial: Option<u32>,
pub active_connections: Option<u32>,
pub incomplete_connections: Option<u32>,
pub bus_names: Option<u32>,
pub peak_bus_names: Option<u32>,
pub peak_bus_names_per_connection: Option<u32>,
pub match_rules: Option<u32>,
pub peak_match_rules: Option<u32>,
pub peak_match_rules_per_connection: Option<u32>,
pub dbus_broker_peer_accounting: Option<HashMap<String, DBusBrokerPeerAccounting>>,
pub dbus_broker_cgroup_accounting: Option<HashMap<String, DBusBrokerCGroupAccounting>>,
pub dbus_broker_user_accounting: Option<HashMap<u32, DBusBrokerUserAccounting>>,
}Expand description
D-Bus daemon/broker statistics from org.freedesktop.DBus.Debug.Stats. Works with both dbus-daemon and dbus-broker; broker-specific fields are in separate maps.
Fields§
§serial: Option<u32>Current D-Bus message serial number (monotonically increasing message counter)
active_connections: Option<u32>Number of fully authenticated active D-Bus connections
incomplete_connections: Option<u32>Number of D-Bus connections still in the authentication handshake phase
bus_names: Option<u32>Current number of registered bus names (well-known + unique)
peak_bus_names: Option<u32>Peak (high-water mark) number of bus names ever registered simultaneously
peak_bus_names_per_connection: Option<u32>Peak number of bus names registered by a single connection
match_rules: Option<u32>Current number of active signal match rules across all connections
peak_match_rules: Option<u32>Peak number of match rules ever registered simultaneously
peak_match_rules_per_connection: Option<u32>Peak number of match rules registered by a single connection
dbus_broker_peer_accounting: Option<HashMap<String, DBusBrokerPeerAccounting>>Per-peer resource accounting (dbus-broker only), keyed by unique connection name
dbus_broker_cgroup_accounting: Option<HashMap<String, DBusBrokerCGroupAccounting>>Per-cgroup resource accounting (dbus-broker only), keyed by cgroup name
dbus_broker_user_accounting: Option<HashMap<u32, DBusBrokerUserAccounting>>Per-user resource quota accounting (dbus-broker only), keyed by Unix UID
Implementations§
Source§impl DBusStats
impl DBusStats
pub fn peer_accounting( &self, ) -> Option<&HashMap<String, DBusBrokerPeerAccounting>>
pub fn cgroup_accounting( &self, ) -> Option<&HashMap<String, DBusBrokerCGroupAccounting>>
pub fn user_accounting(&self) -> Option<&HashMap<u32, DBusBrokerUserAccounting>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DBusStats
impl<'de> Deserialize<'de> for DBusStats
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>,
impl Eq for DBusStats
impl StructuralPartialEq for DBusStats
Auto Trait Implementations§
impl Freeze for DBusStats
impl RefUnwindSafe for DBusStats
impl Send for DBusStats
impl Sync for DBusStats
impl Unpin for DBusStats
impl UnwindSafe for DBusStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.