Struct i3status_rs::blocks::notify::SwayNCDbusProxyBlocking
source · pub struct SwayNCDbusProxyBlocking<'p>(/* private fields */);
Implementations§
source§impl<'p> SwayNCDbusProxyBlocking<'p>
impl<'p> SwayNCDbusProxyBlocking<'p>
sourcepub fn new(conn: &Connection) -> Result<SwayNCDbusProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<SwayNCDbusProxyBlocking<'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 get_dnd(&self) -> Result<bool>
pub fn set_dnd(&self, value: bool) -> Result<()>
pub fn toggle_visibility(&self) -> Result<()>
pub fn notification_count(&self) -> Result<u32>
sourcepub fn receive_subscribe(&self) -> Result<SubscribeIterator<'static>>
pub fn receive_subscribe(&self) -> Result<SubscribeIterator<'static>>
Create a stream that receives Subscribe
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
sourcepub fn receive_subscribe_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SubscribeIterator<'static>>
pub fn receive_subscribe_with_args( &self, args: &[(u8, &str)] ) -> Result<SubscribeIterator<'static>>
Create a stream that receives Subscribe
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
sourcepub fn receive_subscribe_v2(&self) -> Result<SubscribeV2Iterator<'static>>
pub fn receive_subscribe_v2(&self) -> Result<SubscribeV2Iterator<'static>>
Create a stream that receives SubscribeV2
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
sourcepub fn receive_subscribe_v2_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SubscribeV2Iterator<'static>>
pub fn receive_subscribe_v2_with_args( &self, args: &[(u8, &str)] ) -> Result<SubscribeV2Iterator<'static>>
Create a stream that receives SubscribeV2
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for SwayNCDbusProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for SwayNCDbusProxyBlocking<'p>
source§impl<'p> AsRef<Proxy<'p>> for SwayNCDbusProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for SwayNCDbusProxyBlocking<'p>
source§impl<'p> Clone for SwayNCDbusProxyBlocking<'p>
impl<'p> Clone for SwayNCDbusProxyBlocking<'p>
source§fn clone(&self) -> SwayNCDbusProxyBlocking<'p>
fn clone(&self) -> SwayNCDbusProxyBlocking<'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 SwayNCDbusProxyBlocking<'p>
impl<'p> Debug for SwayNCDbusProxyBlocking<'p>
source§impl<'p> From<Proxy<'p>> for SwayNCDbusProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for SwayNCDbusProxyBlocking<'p>
source§impl<'a> ProxyDefault for SwayNCDbusProxyBlocking<'a>
impl<'a> ProxyDefault for SwayNCDbusProxyBlocking<'a>
source§impl<'p> ProxyImpl<'p> for SwayNCDbusProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for SwayNCDbusProxyBlocking<'p>
source§impl<'p> Serialize for SwayNCDbusProxyBlocking<'p>
impl<'p> Serialize for SwayNCDbusProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> Freeze for SwayNCDbusProxyBlocking<'p>
impl<'p> !RefUnwindSafe for SwayNCDbusProxyBlocking<'p>
impl<'p> Send for SwayNCDbusProxyBlocking<'p>
impl<'p> Sync for SwayNCDbusProxyBlocking<'p>
impl<'p> Unpin for SwayNCDbusProxyBlocking<'p>
impl<'p> !UnwindSafe for SwayNCDbusProxyBlocking<'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