pub struct ActiveProxy<'p>(/* private fields */);Implementations§
Source§impl ActiveProxy<'_>
impl ActiveProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<ActiveProxy<'_>>
Source§impl<'p> ActiveProxy<'p>
impl<'p> ActiveProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<ActiveProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ActiveProxy<'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 receive_active_state_changed(&self) -> Result<state_changedStream>
pub async fn receive_active_state_changed(&self) -> Result<state_changedStream>
Create a stream that receives state_changed signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
StateChanged signal
Sourcepub async fn receive_active_state_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<state_changedStream>
pub async fn receive_active_state_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<state_changedStream>
Create a stream that receives state_changed signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
StateChanged signal
Sourcepub async fn connection(&self) -> Result<OwnedObjectPath>
pub async fn connection(&self) -> Result<OwnedObjectPath>
Connection property
Sourcepub fn cached_connection(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_connection( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Connection property
Get the cached value of the Connection property, or None if the property is not cached.
Sourcepub async fn receive_connection_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_connection_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Connection property
Create a stream for the Connection property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn controller(&self) -> Result<OwnedObjectPath>
pub async fn controller(&self) -> Result<OwnedObjectPath>
Controller property
Sourcepub fn cached_controller(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_controller( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Controller property
Get the cached value of the Controller property, or None if the property is not cached.
Sourcepub async fn receive_controller_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_controller_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Controller property
Create a stream for the Controller property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_default(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_default( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Default property
Get the cached value of the Default property, or None if the property is not cached.
Sourcepub async fn receive_default_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_default_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Default property
Create a stream for the Default property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_default6(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_default6( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Default6 property
Get the cached value of the Default6 property, or None if the property is not cached.
Sourcepub async fn receive_default6_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_default6_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Default6 property
Create a stream for the Default6 property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn devices(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn devices(&self) -> Result<Vec<OwnedObjectPath>>
Devices property
Sourcepub fn cached_devices(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_devices( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
Devices property
Get the cached value of the Devices property, or None if the property is not cached.
Sourcepub async fn receive_devices_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
pub async fn receive_devices_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
Devices property
Create a stream for the Devices property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn dhcp4_config(&self) -> Result<OwnedObjectPath>
pub async fn dhcp4_config(&self) -> Result<OwnedObjectPath>
Dhcp4Config property
Sourcepub fn cached_dhcp4_config(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_dhcp4_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Dhcp4Config property
Get the cached value of the Dhcp4Config property, or None if the property is not cached.
Sourcepub async fn receive_dhcp4_config_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_dhcp4_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Dhcp4Config property
Create a stream for the Dhcp4Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn dhcp6_config(&self) -> Result<OwnedObjectPath>
pub async fn dhcp6_config(&self) -> Result<OwnedObjectPath>
Dhcp6Config property
Sourcepub fn cached_dhcp6_config(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_dhcp6_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Dhcp6Config property
Get the cached value of the Dhcp6Config property, or None if the property is not cached.
Sourcepub async fn receive_dhcp6_config_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_dhcp6_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Dhcp6Config property
Create a stream for the Dhcp6Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_id(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_id( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Id property
Get the cached value of the Id property, or None if the property is not cached.
Sourcepub async fn receive_id_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_id_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Id property
Create a stream for the Id property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn ip4_config(&self) -> Result<OwnedObjectPath>
pub async fn ip4_config(&self) -> Result<OwnedObjectPath>
Ip4Config property
Sourcepub fn cached_ip4_config(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_ip4_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Ip4Config property
Get the cached value of the Ip4Config property, or None if the property is not cached.
Sourcepub async fn receive_ip4_config_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_ip4_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Ip4Config property
Create a stream for the Ip4Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn ip6_config(&self) -> Result<OwnedObjectPath>
pub async fn ip6_config(&self) -> Result<OwnedObjectPath>
Ip6Config property
Sourcepub fn cached_ip6_config(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_ip6_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Ip6Config property
Get the cached value of the Ip6Config property, or None if the property is not cached.
Sourcepub async fn receive_ip6_config_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_ip6_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Ip6Config property
Create a stream for the Ip6Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn master(&self) -> Result<OwnedObjectPath>
pub async fn master(&self) -> Result<OwnedObjectPath>
Master property
Sourcepub fn cached_master(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_master( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Master property
Get the cached value of the Master property, or None if the property is not cached.
Sourcepub async fn receive_master_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_master_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Master property
Create a stream for the Master property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn specific_object(&self) -> Result<OwnedObjectPath>
pub async fn specific_object(&self) -> Result<OwnedObjectPath>
SpecificObject property
Sourcepub fn cached_specific_object(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_specific_object( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
SpecificObject property
Get the cached value of the SpecificObject property, or None if the property is not cached.
Sourcepub async fn receive_specific_object_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_specific_object_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
SpecificObject property
Create a stream for the SpecificObject property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_state(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_state( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
State property
Get the cached value of the State property, or None if the property is not cached.
Sourcepub async fn receive_state_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_state_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
State property
Create a stream for the State property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn state_flags(&self) -> Result<u32>
pub async fn state_flags(&self) -> Result<u32>
StateFlags property
Sourcepub fn cached_state_flags(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_state_flags( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
StateFlags property
Get the cached value of the StateFlags property, or None if the property is not cached.
Sourcepub async fn receive_state_flags_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_state_flags_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
StateFlags property
Create a stream for the StateFlags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_type_(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_type_( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Type property
Get the cached value of the Type property, or None if the property is not cached.
Sourcepub async fn receive_type__changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_type__changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Type property
Create a stream for the Type property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_uuid(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_uuid( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Uuid property
Get the cached value of the Uuid property, or None if the property is not cached.
Sourcepub async fn receive_uuid_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_uuid_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Uuid property
Create a stream for the Uuid property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_vpn(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_vpn( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Vpn property
Get the cached value of the Vpn property, or None if the property is not cached.
Sourcepub async fn receive_vpn_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_vpn_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Vpn property
Create a stream for the Vpn property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ActiveProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ActiveProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ActiveProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ActiveProxy<'p>
Source§impl<'p> Clone for ActiveProxy<'p>
impl<'p> Clone for ActiveProxy<'p>
Source§fn clone(&self) -> ActiveProxy<'p>
fn clone(&self) -> ActiveProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more