pub struct AdslProxy<'p>(/* private fields */);Implementations§
Source§impl AdslProxy<'_>
impl AdslProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<AdslProxy<'_>>
Source§impl<'p> AdslProxy<'p>
impl<'p> AdslProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<AdslProxy<'p>>
pub async fn new(conn: &Connection) -> Result<AdslProxy<'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.
Sourcepub fn cached_carrier(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_carrier( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Carrier property
Get the cached value of the Carrier property, or None if the property is not cached.
Sourcepub async fn receive_carrier_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_carrier_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Carrier property
Create a stream for the Carrier property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'a> Defaults for AdslProxy<'a>
impl<'a> Defaults for AdslProxy<'a>
const INTERFACE: &'static Option<InterfaceName<'static>>
const DESTINATION: &'static Option<BusName<'static>>
const PATH: &'static Option<ObjectPath<'static>>
Auto Trait Implementations§
impl<'p> Freeze for AdslProxy<'p>
impl<'p> !RefUnwindSafe for AdslProxy<'p>
impl<'p> Send for AdslProxy<'p>
impl<'p> Sync for AdslProxy<'p>
impl<'p> Unpin for AdslProxy<'p>
impl<'p> !UnwindSafe for AdslProxy<'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