Struct i3status_rs::blocks::bluetooth::Device1Proxy
source · pub struct Device1Proxy<'p>(/* private fields */);
Implementations§
source§impl<'p> Device1Proxy<'p>
impl<'p> Device1Proxy<'p>
sourcepub async fn new<P>(conn: &Connection, path: P) -> Result<Device1Proxy<'p>>
pub async fn new<P>(conn: &Connection, path: P) -> Result<Device1Proxy<'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 connect(&self) -> Result<()>
pub async fn disconnect(&self) -> Result<()>
pub async fn connected(&self) -> Result<bool>
sourcepub fn cached_connected(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_connected( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the Connected
property, or None
if the property is not cached.
sourcepub async fn receive_connected_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_connected_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the Connected
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
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
].
pub async fn icon(&self) -> Result<String>
sourcepub fn cached_icon(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_icon( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the Icon
property, or None
if the property is not cached.
sourcepub async fn receive_icon_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_icon_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the Icon
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for Device1Proxy<'p>
impl<'p> AsMut<Proxy<'p>> for Device1Proxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for Device1Proxy<'p>
impl<'p> AsRef<Proxy<'p>> for Device1Proxy<'p>
source§impl<'p> Clone for Device1Proxy<'p>
impl<'p> Clone for Device1Proxy<'p>
source§fn clone(&self) -> Device1Proxy<'p>
fn clone(&self) -> Device1Proxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more