Struct rusty_network_manager::BondProxy
source · pub struct BondProxy<'p>(/* private fields */);
Implementations§
source§impl BondProxy<'_>
impl BondProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection ) -> Result<BondProxy<'_>>
source§impl<'p> BondProxy<'p>
impl<'p> BondProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<BondProxy<'p>>
pub async fn new(conn: &Connection) -> Result<BondProxy<'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>
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>
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>
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 async fn slaves(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn slaves(&self) -> Result<Vec<OwnedObjectPath>>
Slaves property
sourcepub fn cached_slaves(
&self
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_slaves( &self ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
Get the cached value of the Slaves
property, or None
if the property is not cached.
sourcepub async fn receive_slaves_changed(
&self
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
pub async fn receive_slaves_changed( &self ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
Create a stream for the Slaves
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.