Struct i3status_rs::blocks::notify::DunstDbusProxy
source · pub struct DunstDbusProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> DunstDbusProxy<'p>
impl<'p> DunstDbusProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<DunstDbusProxy<'p>>
pub async fn new(conn: &Connection) -> Result<DunstDbusProxy<'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 async 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 async fn receive_paused_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_paused_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the paused
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
pub async fn set_paused(&self, value: bool) -> Result<()>
pub async fn notification_show(&self) -> Result<()>
pub async 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 async fn receive_displayed_length_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_displayed_length_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the displayedLength
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
pub async 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 async fn receive_waiting_length_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_waiting_length_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the waitingLength
property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed
].
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DunstDbusProxy<'p>
impl<'p> AsMut<Proxy<'p>> for DunstDbusProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for DunstDbusProxy<'p>
impl<'p> AsRef<Proxy<'p>> for DunstDbusProxy<'p>
source§impl<'p> Clone for DunstDbusProxy<'p>
impl<'p> Clone for DunstDbusProxy<'p>
source§fn clone(&self) -> DunstDbusProxy<'p>
fn clone(&self) -> DunstDbusProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more