Struct i3status_rs::blocks::kdeconnect::DeviceDbusProxy
source · pub struct DeviceDbusProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> DeviceDbusProxy<'p>
impl<'p> DeviceDbusProxy<'p>
sourcepub async fn new<P>(conn: &Connection, path: P) -> Result<DeviceDbusProxy<'p>>
pub async fn new<P>(conn: &Connection, path: P) -> Result<DeviceDbusProxy<'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 async 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 async fn receive_is_reachable_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_is_reachable_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the isReachable
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
sourcepub async fn receive_reachable_changed(
&self
) -> Result<reachableChangedStream<'static>>
pub async fn receive_reachable_changed( &self ) -> Result<reachableChangedStream<'static>>
Create a stream that receives reachableChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_reachable_changed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<reachableChangedStream<'static>>
pub async fn receive_reachable_changed_with_args( &self, args: &[(u8, &str)] ) -> Result<reachableChangedStream<'static>>
Create a stream that receives reachableChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
pub async 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 async fn receive_name_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_name_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the name
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
sourcepub async fn receive_name_changed_(&self) -> Result<nameChangedStream<'static>>
pub async fn receive_name_changed_(&self) -> Result<nameChangedStream<'static>>
Create a stream that receives nameChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_name_changed__with_args(
&self,
args: &[(u8, &str)]
) -> Result<nameChangedStream<'static>>
pub async fn receive_name_changed__with_args( &self, args: &[(u8, &str)] ) -> Result<nameChangedStream<'static>>
Create a stream that receives nameChanged
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DeviceDbusProxy<'p>
impl<'p> AsMut<Proxy<'p>> for DeviceDbusProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for DeviceDbusProxy<'p>
impl<'p> AsRef<Proxy<'p>> for DeviceDbusProxy<'p>
source§impl<'p> Clone for DeviceDbusProxy<'p>
impl<'p> Clone for DeviceDbusProxy<'p>
source§fn clone(&self) -> DeviceDbusProxy<'p>
fn clone(&self) -> DeviceDbusProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more