pub struct Stats {
pub(crate) serial: Option<u32>,
pub(crate) active_connections: Option<u32>,
pub(crate) incomplete_connections: Option<u32>,
pub(crate) match_rules: Option<u32>,
pub(crate) peak_match_rules: Option<u32>,
pub(crate) peak_match_rules_per_connection: Option<u32>,
pub(crate) bus_names: Option<u32>,
pub(crate) peak_bus_names: Option<u32>,
pub(crate) peak_bus_names_per_connection: Option<u32>,
pub(crate) rest: HashMap<String, OwnedValue>,
}Expand description
The stats returned by the StatsProxy::get_stats method.
Fields§
§serial: Option<u32>§active_connections: Option<u32>§incomplete_connections: Option<u32>§match_rules: Option<u32>§peak_match_rules: Option<u32>§peak_match_rules_per_connection: Option<u32>§bus_names: Option<u32>§peak_bus_names: Option<u32>§peak_bus_names_per_connection: Option<u32>§rest: HashMap<String, OwnedValue>Implementations§
Source§impl Stats
impl Stats
Sourcepub fn serial(&self) -> Option<u32>
pub fn serial(&self) -> Option<u32>
A serial number which is incremented with each call to the GetStats method.
Sourcepub fn active_connections(&self) -> Option<u32>
pub fn active_connections(&self) -> Option<u32>
The number of active connections currently handled by this message bus. The exact meaning of an active connection is implementation-defined: in the reference dbus-daemon, a connection is considered to be active after it has successfully called the Hello method.
Sourcepub fn incomplete_connections(&self) -> Option<u32>
pub fn incomplete_connections(&self) -> Option<u32>
The number of incomplete connections currently handled by this message bus. The exact
meaning of an incomplete connection is implementation-defined: in the reference dbus-daemon,
a connection is considered to be incomplete if it is still carrying out the SASL handshake
or if it has not yet successfully called the Hello method.
Sourcepub fn match_rules(&self) -> Option<u32>
pub fn match_rules(&self) -> Option<u32>
The total number of match rules that are currently in use.
Sourcepub fn peak_match_rules(&self) -> Option<u32>
pub fn peak_match_rules(&self) -> Option<u32>
The largest total number of match rules that have been in use at any one time.
Sourcepub fn peak_match_rules_per_connection(&self) -> Option<u32>
pub fn peak_match_rules_per_connection(&self) -> Option<u32>
The largest number of match rules that have been in use by a single connection at any one time.
Sourcepub fn bus_names(&self) -> Option<u32>
pub fn bus_names(&self) -> Option<u32>
The total number of bus names that are currently in use.
Sourcepub fn peak_bus_names(&self) -> Option<u32>
pub fn peak_bus_names(&self) -> Option<u32>
The largest total number of bus names that have been in use at any one time.
Sourcepub fn peak_bus_names_per_connection(&self) -> Option<u32>
pub fn peak_bus_names_per_connection(&self) -> Option<u32>
The largest number of bus names that have been in use by a single connection at any one time.
Sourcepub fn rest(&self) -> &HashMap<String, OwnedValue>
pub fn rest(&self) -> &HashMap<String, OwnedValue>
The rest of the statistics, that are not defined by the D-Bus specificiation and hence specific to individual D-Bus broker implementations.