Struct i3status_rs::blocks::notify::DunstDbusProxyBlocking
source · pub struct DunstDbusProxyBlocking<'p>(/* private fields */);
Implementations§
source§impl<'p> DunstDbusProxyBlocking<'p>
impl<'p> DunstDbusProxyBlocking<'p>
sourcepub fn new(conn: &Connection) -> Result<DunstDbusProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<DunstDbusProxyBlocking<'p>>
Creates a new proxy with the default service 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
.
pub fn paused(&self) -> Result<bool>
sourcepub fn cached_paused(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_paused( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the paused
property, or None
if the property is not cached.
sourcepub fn receive_paused_changed(
&self
) -> PropertyIterator<'p, <Result<bool> as ResultAdapter>::Ok>
pub fn receive_paused_changed( &self ) -> PropertyIterator<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the paused
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
pub fn set_paused(&self, value: bool) -> Result<()>
pub fn notification_show(&self) -> Result<()>
pub fn displayed_length(&self) -> Result<u32>
sourcepub fn cached_displayed_length(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_displayed_length( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the displayedLength
property, or None
if the property is not cached.
sourcepub fn receive_displayed_length_changed(
&self
) -> PropertyIterator<'p, <Result<u32> as ResultAdapter>::Ok>
pub fn receive_displayed_length_changed( &self ) -> PropertyIterator<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the displayedLength
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
pub fn waiting_length(&self) -> Result<u32>
sourcepub fn cached_waiting_length(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_waiting_length( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the waitingLength
property, or None
if the property is not cached.
sourcepub fn receive_waiting_length_changed(
&self
) -> PropertyIterator<'p, <Result<u32> as ResultAdapter>::Ok>
pub fn receive_waiting_length_changed( &self ) -> PropertyIterator<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the waitingLength
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DunstDbusProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for DunstDbusProxyBlocking<'p>
source§impl<'p> AsRef<Proxy<'p>> for DunstDbusProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for DunstDbusProxyBlocking<'p>
source§impl<'p> Clone for DunstDbusProxyBlocking<'p>
impl<'p> Clone for DunstDbusProxyBlocking<'p>
source§fn clone(&self) -> DunstDbusProxyBlocking<'p>
fn clone(&self) -> DunstDbusProxyBlocking<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more