pub struct MonitoringProxy<'p>(/* private fields */);Expand description
Proxy for the org.freedesktop.DBus.Monitoring interface.
Implementations§
Source§impl<'p> MonitoringProxy<'p>
impl<'p> MonitoringProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<MonitoringProxy<'p>>
pub async fn new(conn: &Connection) -> Result<MonitoringProxy<'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 become_monitor(
self,
match_rules: &[MatchRule<'_>],
flags: u32,
) -> Result<()>
pub async fn become_monitor( self, match_rules: &[MatchRule<'_>], flags: u32, ) -> Result<()>
Converts the connection into a monitor connection which can be used as a debugging/monitoring tool.
After this call successfully returns, sending any messages on the bus will result
in an error. This is why this method takes ownership of self, since there is not
much use for the proxy anymore. It is highly recommended to convert the underlying
Connection to a MessageStream and iterate over messages from the stream,
after this call.
See the spec for details on all the implications and caveats.
§Arguments
match_rules- A list of match rules describing the messages you want to receive. An empty list means you are want to receive all messages going through the bus.flags- This argument is currently unused by the bus. Just pass a0.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for MonitoringProxy<'p>
impl<'p> AsMut<Proxy<'p>> for MonitoringProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for MonitoringProxy<'p>
impl<'p> AsRef<Proxy<'p>> for MonitoringProxy<'p>
Source§impl<'p> Clone for MonitoringProxy<'p>
impl<'p> Clone for MonitoringProxy<'p>
Source§fn clone(&self) -> MonitoringProxy<'p>
fn clone(&self) -> MonitoringProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more