pub struct NspProxy<'p>(/* private fields */);Implementations§
Source§impl NspProxy<'_>
impl NspProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<NspProxy<'_>>
Source§impl<'p> NspProxy<'p>
impl<'p> NspProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<NspProxy<'p>>
pub async fn new(conn: &Connection) -> Result<NspProxy<'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_name(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_name( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Name property
Get the cached value of the Name property, or None if the property is not cached.
Sourcepub async fn receive_name_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_name_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Name property
Create a stream for the Name property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn network_type(&self) -> Result<u32>
pub async fn network_type(&self) -> Result<u32>
NetworkType property
Sourcepub fn cached_network_type(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_network_type( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
NetworkType property
Get the cached value of the NetworkType property, or None if the property is not cached.
Sourcepub async fn receive_network_type_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_network_type_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
NetworkType property
Create a stream for the NetworkType property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn signal_quality(&self) -> Result<u32>
pub async fn signal_quality(&self) -> Result<u32>
SignalQuality property
Sourcepub fn cached_signal_quality(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_signal_quality( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
SignalQuality property
Get the cached value of the SignalQuality property, or None if the property is not cached.
Sourcepub async fn receive_signal_quality_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_signal_quality_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
SignalQuality property
Create a stream for the SignalQuality property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.