pub struct WiredProxy<'p>(/* private fields */);Implementations§
Source§impl WiredProxy<'_>
impl WiredProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<WiredProxy<'_>>
Source§impl<'p> WiredProxy<'p>
impl<'p> WiredProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<WiredProxy<'p>>
pub async fn new(conn: &Connection) -> Result<WiredProxy<'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.
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.
Sourcepub async fn perm_hw_address(&self) -> Result<String>
pub async fn perm_hw_address(&self) -> Result<String>
PermHwAddress property
Sourcepub fn cached_perm_hw_address(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_perm_hw_address( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
PermHwAddress property
Get the cached value of the PermHwAddress property, or None if the property is not cached.
Sourcepub async fn receive_perm_hw_address_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_perm_hw_address_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
PermHwAddress property
Create a stream for the PermHwAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn s390subchannels(&self) -> Result<Vec<String>>
pub async fn s390subchannels(&self) -> Result<Vec<String>>
S390Subchannels property
Sourcepub fn cached_s390subchannels(
&self,
) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
pub fn cached_s390subchannels( &self, ) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
S390Subchannels property
Get the cached value of the S390Subchannels property, or None if the property is not cached.
Sourcepub async fn receive_s390subchannels_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
pub async fn receive_s390subchannels_changed( &self, ) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
S390Subchannels property
Create a stream for the S390Subchannels property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_speed(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_speed( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Speed property
Get the cached value of the Speed property, or None if the property is not cached.
Sourcepub async fn receive_speed_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_speed_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Speed property
Create a stream for the Speed property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for WiredProxy<'p>
impl<'p> AsMut<Proxy<'p>> for WiredProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for WiredProxy<'p>
impl<'p> AsRef<Proxy<'p>> for WiredProxy<'p>
Source§impl<'p> Clone for WiredProxy<'p>
impl<'p> Clone for WiredProxy<'p>
Source§fn clone(&self) -> WiredProxy<'p>
fn clone(&self) -> WiredProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more