Struct i3status_rs::blocks::kdeconnect::DaemonDbusProxyBlocking
source · pub struct DaemonDbusProxyBlocking<'p>(/* private fields */);
Implementations§
source§impl<'p> DaemonDbusProxyBlocking<'p>
impl<'p> DaemonDbusProxyBlocking<'p>
sourcepub fn new(conn: &Connection) -> Result<DaemonDbusProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<DaemonDbusProxyBlocking<'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 devices(&self) -> Result<Vec<String>>
sourcepub fn receive_device_added(&self) -> Result<deviceAddedIterator<'static>>
pub fn receive_device_added(&self) -> Result<deviceAddedIterator<'static>>
Create a stream that receives deviceAdded
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
sourcepub fn receive_device_added_with_args(
&self,
args: &[(u8, &str)]
) -> Result<deviceAddedIterator<'static>>
pub fn receive_device_added_with_args( &self, args: &[(u8, &str)] ) -> Result<deviceAddedIterator<'static>>
Create a stream that receives deviceAdded
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
sourcepub fn receive_device_removed(&self) -> Result<deviceRemovedIterator<'static>>
pub fn receive_device_removed(&self) -> Result<deviceRemovedIterator<'static>>
Create a stream that receives deviceRemoved
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal
.
sourcepub fn receive_device_removed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<deviceRemovedIterator<'static>>
pub fn receive_device_removed_with_args( &self, args: &[(u8, &str)] ) -> Result<deviceRemovedIterator<'static>>
Create a stream that receives deviceRemoved
signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DaemonDbusProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for DaemonDbusProxyBlocking<'p>
source§impl<'p> AsRef<Proxy<'p>> for DaemonDbusProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for DaemonDbusProxyBlocking<'p>
source§impl<'p> Clone for DaemonDbusProxyBlocking<'p>
impl<'p> Clone for DaemonDbusProxyBlocking<'p>
source§fn clone(&self) -> DaemonDbusProxyBlocking<'p>
fn clone(&self) -> DaemonDbusProxyBlocking<'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 DaemonDbusProxyBlocking<'p>
impl<'p> Debug for DaemonDbusProxyBlocking<'p>
source§impl<'p> From<Proxy<'p>> for DaemonDbusProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for DaemonDbusProxyBlocking<'p>
source§impl<'a> ProxyDefault for DaemonDbusProxyBlocking<'a>
impl<'a> ProxyDefault for DaemonDbusProxyBlocking<'a>
source§impl<'p> ProxyImpl<'p> for DaemonDbusProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for DaemonDbusProxyBlocking<'p>
source§impl<'p> Serialize for DaemonDbusProxyBlocking<'p>
impl<'p> Serialize for DaemonDbusProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> Freeze for DaemonDbusProxyBlocking<'p>
impl<'p> !RefUnwindSafe for DaemonDbusProxyBlocking<'p>
impl<'p> Send for DaemonDbusProxyBlocking<'p>
impl<'p> Sync for DaemonDbusProxyBlocking<'p>
impl<'p> Unpin for DaemonDbusProxyBlocking<'p>
impl<'p> !UnwindSafe for DaemonDbusProxyBlocking<'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