Struct i3status_rs::blocks::kdeconnect::DeviceDbusProxyBlocking
source · pub struct DeviceDbusProxyBlocking<'p>(/* private fields */);
Implementations§
source§impl<'p> DeviceDbusProxyBlocking<'p>
impl<'p> DeviceDbusProxyBlocking<'p>
sourcepub fn new<P>(conn: &Connection, path: P) -> Result<DeviceDbusProxyBlocking<'p>>
pub fn new<P>(conn: &Connection, path: P) -> Result<DeviceDbusProxyBlocking<'p>>
Creates a new proxy with the given path, and the default destination.
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
.
pub fn is_reachable(&self) -> Result<bool>
sourcepub fn cached_is_reachable(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_is_reachable( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the isReachable
property, or None
if the property is not cached.
sourcepub fn receive_is_reachable_changed(
&self
) -> PropertyIterator<'p, <Result<bool> as ResultAdapter>::Ok>
pub fn receive_is_reachable_changed( &self ) -> PropertyIterator<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the isReachable
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
sourcepub fn receive_reachable_changed(
&self
) -> Result<reachableChangedIterator<'static>>
pub fn receive_reachable_changed( &self ) -> Result<reachableChangedIterator<'static>>
Create a stream that receives reachableChanged
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
sourcepub fn receive_reachable_changed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<reachableChangedIterator<'static>>
pub fn receive_reachable_changed_with_args( &self, args: &[(u8, &str)] ) -> Result<reachableChangedIterator<'static>>
Create a stream that receives reachableChanged
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
pub fn name(&self) -> Result<String>
sourcepub fn cached_name(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_name( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the name
property, or None
if the property is not cached.
sourcepub fn receive_name_changed(
&self
) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>
pub fn receive_name_changed( &self ) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the name
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
sourcepub fn receive_name_changed_(&self) -> Result<nameChangedIterator<'static>>
pub fn receive_name_changed_(&self) -> Result<nameChangedIterator<'static>>
Create a stream that receives nameChanged
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
sourcepub fn receive_name_changed__with_args(
&self,
args: &[(u8, &str)]
) -> Result<nameChangedIterator<'static>>
pub fn receive_name_changed__with_args( &self, args: &[(u8, &str)] ) -> Result<nameChangedIterator<'static>>
Create a stream that receives nameChanged
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DeviceDbusProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for DeviceDbusProxyBlocking<'p>
source§impl<'p> AsRef<Proxy<'p>> for DeviceDbusProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for DeviceDbusProxyBlocking<'p>
source§impl<'p> Clone for DeviceDbusProxyBlocking<'p>
impl<'p> Clone for DeviceDbusProxyBlocking<'p>
source§fn clone(&self) -> DeviceDbusProxyBlocking<'p>
fn clone(&self) -> DeviceDbusProxyBlocking<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more