pub struct PropertiesProxy<'p>(/* private fields */);
Expand description
Proxy for the org.freedesktop.DBus.Properties
interface.
Implementations§
Source§impl<'p> PropertiesProxy<'p>
impl<'p> PropertiesProxy<'p>
Sourcepub async fn new<D, P>(
conn: &Connection,
destination: D,
path: P,
) -> Result<PropertiesProxy<'p>>
pub async fn new<D, P>( conn: &Connection, destination: D, path: P, ) -> Result<PropertiesProxy<'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(
&self,
interface_name: InterfaceName<'_>,
property_name: &str,
) -> Result<OwnedValue>
pub async fn get( &self, interface_name: InterfaceName<'_>, property_name: &str, ) -> Result<OwnedValue>
Get a property value.
Sourcepub async fn set(
&self,
interface_name: InterfaceName<'_>,
property_name: &str,
value: &Value<'_>,
) -> Result<()>
pub async fn set( &self, interface_name: InterfaceName<'_>, property_name: &str, value: &Value<'_>, ) -> Result<()>
Set a property value.
Sourcepub async fn get_all(
&self,
interface_name: Optional<InterfaceName<'_>>,
) -> Result<HashMap<String, OwnedValue>>
pub async fn get_all( &self, interface_name: Optional<InterfaceName<'_>>, ) -> Result<HashMap<String, OwnedValue>>
Get all properties.
Sourcepub async fn receive_properties_changed(
&self,
) -> Result<PropertiesChangedStream<'static>>
pub async fn receive_properties_changed( &self, ) -> Result<PropertiesChangedStream<'static>>
Create a stream that receives PropertiesChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
Sourcepub async fn receive_properties_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<PropertiesChangedStream<'static>>
pub async fn receive_properties_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<PropertiesChangedStream<'static>>
Create a stream that receives PropertiesChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for PropertiesProxy<'p>
impl<'p> AsMut<Proxy<'p>> for PropertiesProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for PropertiesProxy<'p>
impl<'p> AsRef<Proxy<'p>> for PropertiesProxy<'p>
Source§impl<'p> Clone for PropertiesProxy<'p>
impl<'p> Clone for PropertiesProxy<'p>
Source§fn clone(&self) -> PropertiesProxy<'p>
fn clone(&self) -> PropertiesProxy<'p>
Returns a copy 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 PropertiesProxy<'p>
impl<'p> Debug for PropertiesProxy<'p>
Source§impl<'p> From<Proxy<'p>> for PropertiesProxy<'p>
impl<'p> From<Proxy<'p>> for PropertiesProxy<'p>
Source§impl<'a> ProxyDefault for PropertiesProxy<'a>
impl<'a> ProxyDefault for PropertiesProxy<'a>
Source§impl<'p> ProxyImpl<'p> for PropertiesProxy<'p>
impl<'p> ProxyImpl<'p> for PropertiesProxy<'p>
Source§impl<'p> Serialize for PropertiesProxy<'p>
impl<'p> Serialize for PropertiesProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for PropertiesProxy<'p>
impl<'p> !RefUnwindSafe for PropertiesProxy<'p>
impl<'p> Send for PropertiesProxy<'p>
impl<'p> Sync for PropertiesProxy<'p>
impl<'p> Unpin for PropertiesProxy<'p>
impl<'p> !UnwindSafe for PropertiesProxy<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
Source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more