Struct i3status_rs::blocks::notify::SwayNCDbusProxy
source · pub struct SwayNCDbusProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> SwayNCDbusProxy<'p>
impl<'p> SwayNCDbusProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<SwayNCDbusProxy<'p>>
pub async fn new(conn: &Connection) -> Result<SwayNCDbusProxy<'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 get_dnd(&self) -> Result<bool>
pub async fn set_dnd(&self, value: bool) -> Result<()>
pub async fn toggle_visibility(&self) -> Result<()>
pub async fn notification_count(&self) -> Result<u32>
sourcepub async fn receive_subscribe(&self) -> Result<SubscribeStream<'static>>
pub async fn receive_subscribe(&self) -> Result<SubscribeStream<'static>>
Create a stream that receives Subscribe
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_subscribe_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SubscribeStream<'static>>
pub async fn receive_subscribe_with_args( &self, args: &[(u8, &str)] ) -> Result<SubscribeStream<'static>>
Create a stream that receives Subscribe
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
sourcepub async fn receive_subscribe_v2(&self) -> Result<SubscribeV2Stream<'static>>
pub async fn receive_subscribe_v2(&self) -> Result<SubscribeV2Stream<'static>>
Create a stream that receives SubscribeV2
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
sourcepub async fn receive_subscribe_v2_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SubscribeV2Stream<'static>>
pub async fn receive_subscribe_v2_with_args( &self, args: &[(u8, &str)] ) -> Result<SubscribeV2Stream<'static>>
Create a stream that receives SubscribeV2
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for SwayNCDbusProxy<'p>
impl<'p> AsMut<Proxy<'p>> for SwayNCDbusProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for SwayNCDbusProxy<'p>
impl<'p> AsRef<Proxy<'p>> for SwayNCDbusProxy<'p>
source§impl<'p> Clone for SwayNCDbusProxy<'p>
impl<'p> Clone for SwayNCDbusProxy<'p>
source§fn clone(&self) -> SwayNCDbusProxy<'p>
fn clone(&self) -> SwayNCDbusProxy<'p>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'p> Debug for SwayNCDbusProxy<'p>
impl<'p> Debug for SwayNCDbusProxy<'p>
source§impl<'p> From<Proxy<'p>> for SwayNCDbusProxy<'p>
impl<'p> From<Proxy<'p>> for SwayNCDbusProxy<'p>
source§impl<'a> ProxyDefault for SwayNCDbusProxy<'a>
impl<'a> ProxyDefault for SwayNCDbusProxy<'a>
source§impl<'p> ProxyImpl<'p> for SwayNCDbusProxy<'p>
impl<'p> ProxyImpl<'p> for SwayNCDbusProxy<'p>
source§impl<'p> Serialize for SwayNCDbusProxy<'p>
impl<'p> Serialize for SwayNCDbusProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for SwayNCDbusProxy<'p>
impl<'p> !RefUnwindSafe for SwayNCDbusProxy<'p>
impl<'p> Send for SwayNCDbusProxy<'p>
impl<'p> Sync for SwayNCDbusProxy<'p>
impl<'p> Unpin for SwayNCDbusProxy<'p>
impl<'p> !UnwindSafe for SwayNCDbusProxy<'p>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more