pub struct DBusBrokerUserAccounting {
pub uid: u32,
pub username: String,
pub bytes: Option<CurMaxPair>,
pub fds: Option<CurMaxPair>,
pub stale_fds: Option<u32>,
pub matches: Option<CurMaxPair>,
pub objects: Option<CurMaxPair>,
}Expand description
Per-user aggregated D-Bus resource limits and usage from dbus-broker’s UserAccounting. Each entry tracks quota consumption across all connections belonging to a Unix user.
Fields§
§uid: u32Unix user ID this accounting entry belongs to
username: StringUsername resolved from uid at parse time; falls back to the numeric UID string if unknown.
bytes: Option<CurMaxPair>Message byte quota: remaining (cur) and maximum (max) allowed bytes across all connections
fds: Option<CurMaxPair>File descriptor quota: remaining (cur) and maximum (max) allowed FDs across all connections
stale_fds: Option<u32>Unattributed stale pidfd descriptors held by the system dbus-broker.
dbus-broker exposes these through procfs, not D-Bus UserAccounting. The kernel
reports dead pidfds as Pid: -1 in /proc/<dbus-broker>/fdinfo/<fd>.
The stale pidfd no longer exposes the original process credentials through
procfs, so monitord surfaces the system-broker count on uid 0/root for metric
compatibility. This does not mean root owns those stale pidfds.
matches: Option<CurMaxPair>Match rule quota: remaining (cur) and maximum (max) allowed match rules across all connections
objects: Option<CurMaxPair>Object quota: remaining (cur) and maximum (max) allowed objects (names, replies) across all connections
Trait Implementations§
Source§impl Clone for DBusBrokerUserAccounting
impl Clone for DBusBrokerUserAccounting
Source§fn clone(&self) -> DBusBrokerUserAccounting
fn clone(&self) -> DBusBrokerUserAccounting
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DBusBrokerUserAccounting
impl Debug for DBusBrokerUserAccounting
Source§impl Default for DBusBrokerUserAccounting
impl Default for DBusBrokerUserAccounting
Source§fn default() -> DBusBrokerUserAccounting
fn default() -> DBusBrokerUserAccounting
Source§impl<'de> Deserialize<'de> for DBusBrokerUserAccounting
impl<'de> Deserialize<'de> for DBusBrokerUserAccounting
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>,
Source§impl PartialEq for DBusBrokerUserAccounting
impl PartialEq for DBusBrokerUserAccounting
Source§fn eq(&self, other: &DBusBrokerUserAccounting) -> bool
fn eq(&self, other: &DBusBrokerUserAccounting) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DBusBrokerUserAccounting
impl Serialize for DBusBrokerUserAccounting
impl Eq for DBusBrokerUserAccounting
impl StructuralPartialEq for DBusBrokerUserAccounting
Auto Trait Implementations§
impl Freeze for DBusBrokerUserAccounting
impl RefUnwindSafe for DBusBrokerUserAccounting
impl Send for DBusBrokerUserAccounting
impl Sync for DBusBrokerUserAccounting
impl Unpin for DBusBrokerUserAccounting
impl UnsafeUnpin for DBusBrokerUserAccounting
impl UnwindSafe for DBusBrokerUserAccounting
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.