Struct rusty_network_manager::AccessPointProxy
source · pub struct AccessPointProxy<'p>(/* private fields */);Implementations§
source§impl AccessPointProxy<'_>
impl AccessPointProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection ) -> Result<AccessPointProxy<'_>>
source§impl<'p> AccessPointProxy<'p>
impl<'p> AccessPointProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<AccessPointProxy<'p>>
pub async fn new(conn: &Connection) -> Result<AccessPointProxy<'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_bandwidth(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_bandwidth( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the Bandwidth property, or None if the property is not cached.
sourcepub async fn receive_bandwidth_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_bandwidth_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the Bandwidth property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_flags(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_flags( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the Flags property, or None if the property is not cached.
sourcepub async fn receive_flags_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_flags_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the Flags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_frequency(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_frequency( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the Frequency property, or None if the property is not cached.
sourcepub async fn receive_frequency_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_frequency_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the Frequency 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>
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>
Create a stream for the HwAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_last_seen(
&self
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_last_seen( &self ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the LastSeen property, or None if the property is not cached.
sourcepub async fn receive_last_seen_changed(
&self
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_last_seen_changed( &self ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the LastSeen property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub async fn max_bitrate(&self) -> Result<u32>
pub async fn max_bitrate(&self) -> Result<u32>
MaxBitrate property
sourcepub fn cached_max_bitrate(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_max_bitrate( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the MaxBitrate property, or None if the property is not cached.
sourcepub async fn receive_max_bitrate_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_max_bitrate_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the MaxBitrate property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_mode(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_mode( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the Mode property, or None if the property is not cached.
sourcepub async fn receive_mode_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_mode_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the Mode property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_rsn_flags(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_rsn_flags( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the RsnFlags property, or None if the property is not cached.
sourcepub async fn receive_rsn_flags_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_rsn_flags_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the RsnFlags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_ssid(
&self
) -> Result<Option<<Result<Vec<u8>> as ResultAdapter>::Ok>, <Result<Vec<u8>> as ResultAdapter>::Err>
pub fn cached_ssid( &self ) -> Result<Option<<Result<Vec<u8>> as ResultAdapter>::Ok>, <Result<Vec<u8>> as ResultAdapter>::Err>
Get the cached value of the Ssid property, or None if the property is not cached.
sourcepub async fn receive_ssid_changed(
&self
) -> PropertyStream<'p, <Result<Vec<u8>> as ResultAdapter>::Ok>
pub async fn receive_ssid_changed( &self ) -> PropertyStream<'p, <Result<Vec<u8>> as ResultAdapter>::Ok>
Create a stream for the Ssid property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_strength(
&self
) -> Result<Option<<Result<u8> as ResultAdapter>::Ok>, <Result<u8> as ResultAdapter>::Err>
pub fn cached_strength( &self ) -> Result<Option<<Result<u8> as ResultAdapter>::Ok>, <Result<u8> as ResultAdapter>::Err>
Get the cached value of the Strength property, or None if the property is not cached.
sourcepub async fn receive_strength_changed(
&self
) -> PropertyStream<'p, <Result<u8> as ResultAdapter>::Ok>
pub async fn receive_strength_changed( &self ) -> PropertyStream<'p, <Result<u8> as ResultAdapter>::Ok>
Create a stream for the Strength property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
sourcepub fn cached_wpa_flags(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_wpa_flags( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the WpaFlags property, or None if the property is not cached.
sourcepub async fn receive_wpa_flags_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_wpa_flags_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the WpaFlags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for AccessPointProxy<'p>
impl<'p> AsMut<Proxy<'p>> for AccessPointProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for AccessPointProxy<'p>
impl<'p> AsRef<Proxy<'p>> for AccessPointProxy<'p>
source§impl<'p> Clone for AccessPointProxy<'p>
impl<'p> Clone for AccessPointProxy<'p>
source§fn clone(&self) -> AccessPointProxy<'p>
fn clone(&self) -> AccessPointProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more