pub struct ObjectManagerProxy<'p>(/* private fields */);
Expand description
Proxy for the org.freedesktop.DBus.ObjectManager
interface.
NB: Changes to properties on existing interfaces are not reported using this interface.
Please use PropertiesProxy::receive_properties_changed
to monitor changes to properties on
objects.
Implementations§
Source§impl<'p> ObjectManagerProxy<'p>
impl<'p> ObjectManagerProxy<'p>
Sourcepub async fn new<D, P>(
conn: &Connection,
destination: D,
path: P,
) -> Result<ObjectManagerProxy<'p>>
pub async fn new<D, P>( conn: &Connection, destination: D, path: P, ) -> Result<ObjectManagerProxy<'p>>
Creates a new proxy with the given service destination 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_managed_objects(&self) -> Result<ManagedObjects>
pub async fn get_managed_objects(&self) -> Result<ManagedObjects>
The return value of this method is a dict whose keys are object paths. All returned object paths are children of the object path implementing this interface, i.e. their object paths start with the ObjectManager’s object path plus ‘/’.
Each value is a dict whose keys are interfaces names. Each value in this inner dict is the same dict that would be returned by the org.freedesktop.DBus.Properties.GetAll() method for that combination of object path and interface. If an interface has no properties, the empty dict is returned.
Sourcepub async fn receive_interfaces_added(
&self,
) -> Result<InterfacesAddedStream<'static>>
pub async fn receive_interfaces_added( &self, ) -> Result<InterfacesAddedStream<'static>>
Create a stream that receives InterfacesAdded
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
This signal is emitted when either a new object is added or when an existing object gains
one or more interfaces. The interfaces_and_properties
argument contains a map with the
interfaces and properties (if any) that have been added to the given object path.
Sourcepub async fn receive_interfaces_added_with_args(
&self,
args: &[(u8, &str)],
) -> Result<InterfacesAddedStream<'static>>
pub async fn receive_interfaces_added_with_args( &self, args: &[(u8, &str)], ) -> Result<InterfacesAddedStream<'static>>
Create a stream that receives InterfacesAdded
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
This signal is emitted when either a new object is added or when an existing object gains
one or more interfaces. The interfaces_and_properties
argument contains a map with the
interfaces and properties (if any) that have been added to the given object path.
Sourcepub async fn receive_interfaces_removed(
&self,
) -> Result<InterfacesRemovedStream<'static>>
pub async fn receive_interfaces_removed( &self, ) -> Result<InterfacesRemovedStream<'static>>
Create a stream that receives InterfacesRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
This signal is emitted whenever an object is removed or it loses one or more interfaces.
The interfaces
parameters contains a list of the interfaces that were removed.
Sourcepub async fn receive_interfaces_removed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<InterfacesRemovedStream<'static>>
pub async fn receive_interfaces_removed_with_args( &self, args: &[(u8, &str)], ) -> Result<InterfacesRemovedStream<'static>>
Create a stream that receives InterfacesRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
This signal is emitted whenever an object is removed or it loses one or more interfaces.
The interfaces
parameters contains a list of the interfaces that were removed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ObjectManagerProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ObjectManagerProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ObjectManagerProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ObjectManagerProxy<'p>
Source§impl<'p> Clone for ObjectManagerProxy<'p>
impl<'p> Clone for ObjectManagerProxy<'p>
Source§fn clone(&self) -> ObjectManagerProxy<'p>
fn clone(&self) -> ObjectManagerProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more