pub struct OlpcMeshProxy<'p>(/* private fields */);Implementations§
Source§impl OlpcMeshProxy<'_>
impl OlpcMeshProxy<'_>
pub async fn getnew_from_path_proxy( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<OlpcMeshProxy<'_>>
Source§impl<'p> OlpcMeshProxy<'p>
impl<'p> OlpcMeshProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<OlpcMeshProxy<'p>>
pub async fn new(conn: &Connection) -> Result<OlpcMeshProxy<'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 async fn active_channel(&self) -> Result<u32>
pub async fn active_channel(&self) -> Result<u32>
ActiveChannel property
Sourcepub fn cached_active_channel(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_active_channel( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
ActiveChannel property
Get the cached value of the ActiveChannel property, or None if the property is not cached.
Sourcepub async fn receive_active_channel_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_active_channel_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
ActiveChannel property
Create a stream for the ActiveChannel property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn companion(&self) -> Result<OwnedObjectPath>
pub async fn companion(&self) -> Result<OwnedObjectPath>
Companion property
Sourcepub fn cached_companion(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_companion( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Companion property
Get the cached value of the Companion property, or None if the property is not cached.
Sourcepub async fn receive_companion_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_companion_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Companion property
Create a stream for the Companion property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn hw_address(&self) -> Result<String>
pub async fn hw_address(&self) -> Result<String>
HwAddress property
Sourcepub fn cached_hw_address(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_hw_address( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
HwAddress property
Get the cached value of the HwAddress property, or None if the property is not cached.
Sourcepub async fn receive_hw_address_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_hw_address_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
HwAddress property
Create a stream for the HwAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for OlpcMeshProxy<'p>
impl<'p> AsMut<Proxy<'p>> for OlpcMeshProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for OlpcMeshProxy<'p>
impl<'p> AsRef<Proxy<'p>> for OlpcMeshProxy<'p>
Source§impl<'p> Clone for OlpcMeshProxy<'p>
impl<'p> Clone for OlpcMeshProxy<'p>
Source§fn clone(&self) -> OlpcMeshProxy<'p>
fn clone(&self) -> OlpcMeshProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more