pub struct DeviceProxyBlocking<'p>(/* private fields */);
Implementations§
Source§impl<'p> DeviceProxyBlocking<'p>
impl<'p> DeviceProxyBlocking<'p>
Sourcepub fn new<P>(conn: &Connection, path: P) -> Result<DeviceProxyBlocking<'p>>
pub fn new<P>(conn: &Connection, path: P) -> Result<DeviceProxyBlocking<'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
.
Sourcepub fn sysfs_path(&self) -> Result<String>
pub fn sysfs_path(&self) -> Result<String>
SysFSPath property
Sourcepub fn cached_sysfs_path(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_sysfs_path( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
SysFSPath property
Get the cached value of the SysFSPath
property, or None
if the property is not cached.
Sourcepub fn receive_sysfs_path_changed(
&self,
) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>
pub fn receive_sysfs_path_changed( &self, ) -> PropertyIterator<'p, <Result<String> as ResultAdapter>::Ok>
SysFSPath property
Create a stream for the SysFSPath
property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed
.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for DeviceProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for DeviceProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for DeviceProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for DeviceProxyBlocking<'p>
Source§impl<'p> Clone for DeviceProxyBlocking<'p>
impl<'p> Clone for DeviceProxyBlocking<'p>
Source§fn clone(&self) -> DeviceProxyBlocking<'p>
fn clone(&self) -> DeviceProxyBlocking<'p>
Returns a duplicate 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 DeviceProxyBlocking<'p>
impl<'p> Debug for DeviceProxyBlocking<'p>
Source§impl<'a> Defaults for DeviceProxyBlocking<'a>
impl<'a> Defaults for DeviceProxyBlocking<'a>
const INTERFACE: &'static Option<InterfaceName<'static>>
const DESTINATION: &'static Option<BusName<'static>>
const PATH: &'static Option<ObjectPath<'static>>
Source§impl<'p> From<Proxy<'p>> for DeviceProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for DeviceProxyBlocking<'p>
Source§impl<'p> ProxyImpl<'p> for DeviceProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for DeviceProxyBlocking<'p>
Source§impl<'p> Serialize for DeviceProxyBlocking<'p>
impl<'p> Serialize for DeviceProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> Freeze for DeviceProxyBlocking<'p>
impl<'p> !RefUnwindSafe for DeviceProxyBlocking<'p>
impl<'p> Send for DeviceProxyBlocking<'p>
impl<'p> Sync for DeviceProxyBlocking<'p>
impl<'p> Unpin for DeviceProxyBlocking<'p>
impl<'p> !UnwindSafe for DeviceProxyBlocking<'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