pub struct PropertiesProxy<'p>(/* private fields */);
Expand description
Proxy for the org.freedesktop.DBus.Properties
interface.
Implementations§
Source§impl<'p> PropertiesProxyBlocking<'p>
impl<'p> PropertiesProxyBlocking<'p>
Sourcepub fn new<D, P>(
conn: &Connection,
destination: D,
path: P,
) -> Result<PropertiesProxyBlocking<'p>>
pub fn new<D, P>( conn: &Connection, destination: D, path: P, ) -> Result<PropertiesProxyBlocking<'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 fn get(
&self,
interface_name: InterfaceName<'_>,
property_name: &str,
) -> Result<OwnedValue>
pub fn get( &self, interface_name: InterfaceName<'_>, property_name: &str, ) -> Result<OwnedValue>
Get a property value.
Sourcepub fn set(
&self,
interface_name: InterfaceName<'_>,
property_name: &str,
value: Value<'_>,
) -> Result<()>
pub fn set( &self, interface_name: InterfaceName<'_>, property_name: &str, value: Value<'_>, ) -> Result<()>
Set a property value.
Sourcepub fn get_all(
&self,
interface_name: InterfaceName<'_>,
) -> Result<HashMap<String, OwnedValue>>
pub fn get_all( &self, interface_name: InterfaceName<'_>, ) -> Result<HashMap<String, OwnedValue>>
Get all properties.
Sourcepub fn receive_properties_changed(&self) -> Result<PropertiesChangedIterator>
pub fn receive_properties_changed(&self) -> Result<PropertiesChangedIterator>
Create a stream that receives PropertiesChanged
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
Emit the org.freedesktop.DBus.Properties.PropertiesChanged
signal.
Sourcepub fn receive_properties_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<PropertiesChangedIterator>
pub fn receive_properties_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<PropertiesChangedIterator>
Create a stream that receives PropertiesChanged
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
Emit the org.freedesktop.DBus.Properties.PropertiesChanged
signal.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for PropertiesProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for PropertiesProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for PropertiesProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for PropertiesProxyBlocking<'p>
Source§impl<'p> Clone for PropertiesProxyBlocking<'p>
impl<'p> Clone for PropertiesProxyBlocking<'p>
Source§fn clone(&self) -> PropertiesProxyBlocking<'p>
fn clone(&self) -> PropertiesProxyBlocking<'p>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'p> Debug for PropertiesProxyBlocking<'p>
impl<'p> Debug for PropertiesProxyBlocking<'p>
Source§impl<'a> Defaults for PropertiesProxyBlocking<'a>
impl<'a> Defaults for PropertiesProxyBlocking<'a>
const INTERFACE: &'static Option<InterfaceName<'static>>
const DESTINATION: &'static Option<BusName<'static>>
const PATH: &'static Option<ObjectPath<'static>>
Source§impl<'p> From<Proxy<'p>> for PropertiesProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for PropertiesProxyBlocking<'p>
Source§impl<'p> ProxyImpl<'p> for PropertiesProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for PropertiesProxyBlocking<'p>
Source§impl<'p> Serialize for PropertiesProxyBlocking<'p>
impl<'p> Serialize for PropertiesProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> Freeze for PropertiesProxyBlocking<'p>
impl<'p> !RefUnwindSafe for PropertiesProxyBlocking<'p>
impl<'p> Send for PropertiesProxyBlocking<'p>
impl<'p> Sync for PropertiesProxyBlocking<'p>
impl<'p> Unpin for PropertiesProxyBlocking<'p>
impl<'p> !UnwindSafe for PropertiesProxyBlocking<'p>
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
Mutably borrows from an owned value. Read more