pub struct StatsProxy<'p>(/* private fields */);
Expand description
Proxy for the org.freedesktop.DBus.Debug.Stats
interface.
Implementations§
Source§impl<'p> StatsProxy<'p>
impl<'p> StatsProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<StatsProxy<'p>>
pub async fn new(conn: &Connection) -> Result<StatsProxy<'p>>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self
, returning the underlying zbus::Proxy
.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy
.
Sourcepub async fn get_connection_stats(
&self,
name: BusName<'_>,
) -> Result<ConnectionStats>
pub async fn get_connection_stats( &self, name: BusName<'_>, ) -> Result<ConnectionStats>
Get statistics about a connection, identified by its unique connection name or by any
well-known bus name for which it is the primary owner. This method is not meaningful for
the message bus org.freedesktop.DBus
itself.
Sourcepub async fn get_all_match_rules(
&self,
) -> Result<HashMap<OwnedUniqueName, Vec<OwnedMatchRule>>>
pub async fn get_all_match_rules( &self, ) -> Result<HashMap<OwnedUniqueName, Vec<OwnedMatchRule>>>
List all of the match rules that are active on this message bus. The keys in the result dictionary are unique connection names. The values are lists of match rules registered by that connection, in an unspecified order. If a connection has registered the same match rule more than once, it is unspecified whether duplicate entries appear in the list.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for StatsProxy<'p>
impl<'p> AsMut<Proxy<'p>> for StatsProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for StatsProxy<'p>
impl<'p> AsRef<Proxy<'p>> for StatsProxy<'p>
Source§impl<'p> Clone for StatsProxy<'p>
impl<'p> Clone for StatsProxy<'p>
Source§fn clone(&self) -> StatsProxy<'p>
fn clone(&self) -> StatsProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more