Struct i3status_rs::blocks::kdeconnect::NotificationsDbusProxy
source · pub struct NotificationsDbusProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> NotificationsDbusProxy<'p>
impl<'p> NotificationsDbusProxy<'p>
sourcepub async fn new<P>(
conn: &Connection,
path: P
) -> Result<NotificationsDbusProxy<'p>>
pub async fn new<P>( conn: &Connection, path: P ) -> Result<NotificationsDbusProxy<'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 active_notifications(&self) -> Result<Vec<String>>
sourcepub async fn receive_all_notifications_removed(
&self
) -> Result<allNotificationsRemovedStream<'static>>
pub async fn receive_all_notifications_removed( &self ) -> Result<allNotificationsRemovedStream<'static>>
Create a stream that receives allNotificationsRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_notification_posted(
&self
) -> Result<notificationPostedStream<'static>>
pub async fn receive_notification_posted( &self ) -> Result<notificationPostedStream<'static>>
Create a stream that receives notificationPosted
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_notification_posted_with_args(
&self,
args: &[(u8, &str)]
) -> Result<notificationPostedStream<'static>>
pub async fn receive_notification_posted_with_args( &self, args: &[(u8, &str)] ) -> Result<notificationPostedStream<'static>>
Create a stream that receives notificationPosted
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
sourcepub async fn receive_notification_removed(
&self
) -> Result<notificationRemovedStream<'static>>
pub async fn receive_notification_removed( &self ) -> Result<notificationRemovedStream<'static>>
Create a stream that receives notificationRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_notification_removed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<notificationRemovedStream<'static>>
pub async fn receive_notification_removed_with_args( &self, args: &[(u8, &str)] ) -> Result<notificationRemovedStream<'static>>
Create a stream that receives notificationRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for NotificationsDbusProxy<'p>
impl<'p> AsMut<Proxy<'p>> for NotificationsDbusProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for NotificationsDbusProxy<'p>
impl<'p> AsRef<Proxy<'p>> for NotificationsDbusProxy<'p>
source§impl<'p> Clone for NotificationsDbusProxy<'p>
impl<'p> Clone for NotificationsDbusProxy<'p>
source§fn clone(&self) -> NotificationsDbusProxy<'p>
fn clone(&self) -> NotificationsDbusProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more