pub struct DeviceProxy<'p>(/* private fields */);Implementations§
Source§impl DeviceProxy<'_>
impl DeviceProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<DeviceProxy<'_>>
Source§impl<'p> DeviceProxy<'p>
impl<'p> DeviceProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<DeviceProxy<'p>>
pub async fn new(conn: &Connection) -> Result<DeviceProxy<'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 disconnect(&self) -> Result<()>
pub async fn disconnect(&self) -> Result<()>
Disconnect method
Sourcepub async fn get_applied_connection(
&self,
flags: u32,
) -> Result<(HashMap<String, HashMap<String, OwnedValue>>, u64)>
pub async fn get_applied_connection( &self, flags: u32, ) -> Result<(HashMap<String, HashMap<String, OwnedValue>>, u64)>
GetAppliedConnection method
Sourcepub async fn reapply(
&self,
connection: HashMap<&str, HashMap<&str, Value<'_>>>,
version_id: u64,
flags: u32,
) -> Result<()>
pub async fn reapply( &self, connection: HashMap<&str, HashMap<&str, Value<'_>>>, version_id: u64, flags: u32, ) -> Result<()>
Reapply method
Sourcepub async fn receive_device_state_changed(&self) -> Result<StateChangedStream>
pub async fn receive_device_state_changed(&self) -> Result<StateChangedStream>
Create a stream that receives StateChanged signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
StateChanged signal
Sourcepub async fn receive_device_state_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<StateChangedStream>
pub async fn receive_device_state_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<StateChangedStream>
Create a stream that receives StateChanged signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
StateChanged signal
Sourcepub async fn active_connection(&self) -> Result<OwnedObjectPath>
pub async fn active_connection(&self) -> Result<OwnedObjectPath>
ActiveConnection property
Sourcepub fn cached_active_connection(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_active_connection( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
ActiveConnection property
Get the cached value of the ActiveConnection property, or None if the property is not cached.
Sourcepub async fn receive_active_connection_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_active_connection_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
ActiveConnection property
Create a stream for the ActiveConnection property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn autoconnect(&self) -> Result<bool>
pub async fn autoconnect(&self) -> Result<bool>
Autoconnect property
Sourcepub fn cached_autoconnect(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_autoconnect( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Autoconnect property
Get the cached value of the Autoconnect property, or None if the property is not cached.
Sourcepub async fn receive_autoconnect_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_autoconnect_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Autoconnect property
Create a stream for the Autoconnect property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
pub async fn set_autoconnect(&self, value: bool) -> Result<()>
Sourcepub async fn available_connections(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn available_connections(&self) -> Result<Vec<OwnedObjectPath>>
AvailableConnections property
Sourcepub fn cached_available_connections(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_available_connections( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
AvailableConnections property
Get the cached value of the AvailableConnections property, or None if the property is not cached.
Sourcepub async fn receive_available_connections_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
pub async fn receive_available_connections_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
AvailableConnections property
Create a stream for the AvailableConnections property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn capabilities(&self) -> Result<u32>
pub async fn capabilities(&self) -> Result<u32>
Capabilities property
Sourcepub fn cached_capabilities(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_capabilities( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Capabilities property
Get the cached value of the Capabilities property, or None if the property is not cached.
Sourcepub async fn receive_capabilities_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_capabilities_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Capabilities property
Create a stream for the Capabilities property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn device_type(&self) -> Result<u32>
pub async fn device_type(&self) -> Result<u32>
DeviceType property
Sourcepub fn cached_device_type(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_device_type( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
DeviceType property
Get the cached value of the DeviceType property, or None if the property is not cached.
Sourcepub async fn receive_device_type_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_device_type_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
DeviceType property
Create a stream for the DeviceType 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_driver(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_driver( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Driver property
Get the cached value of the Driver property, or None if the property is not cached.
Sourcepub async fn receive_driver_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_driver_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Driver property
Create a stream for the Driver property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn driver_version(&self) -> Result<String>
pub async fn driver_version(&self) -> Result<String>
DriverVersion property
Sourcepub fn cached_driver_version(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_driver_version( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
DriverVersion property
Get the cached value of the DriverVersion property, or None if the property is not cached.
Sourcepub async fn receive_driver_version_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_driver_version_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
DriverVersion property
Create a stream for the DriverVersion property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn firmware_missing(&self) -> Result<bool>
pub async fn firmware_missing(&self) -> Result<bool>
FirmwareMissing property
Sourcepub fn cached_firmware_missing(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_firmware_missing( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
FirmwareMissing property
Get the cached value of the FirmwareMissing property, or None if the property is not cached.
Sourcepub async fn receive_firmware_missing_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_firmware_missing_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
FirmwareMissing property
Create a stream for the FirmwareMissing property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn firmware_version(&self) -> Result<String>
pub async fn firmware_version(&self) -> Result<String>
FirmwareVersion property
Sourcepub fn cached_firmware_version(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_firmware_version( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
FirmwareVersion property
Get the cached value of the FirmwareVersion property, or None if the property is not cached.
Sourcepub async fn receive_firmware_version_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_firmware_version_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
FirmwareVersion property
Create a stream for the FirmwareVersion 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 fn cached_interface(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_interface( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Interface property
Get the cached value of the Interface property, or None if the property is not cached.
Sourcepub async fn receive_interface_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_interface_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Interface property
Create a stream for the Interface property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn interface_flags(&self) -> Result<u32>
pub async fn interface_flags(&self) -> Result<u32>
InterfaceFlags property
Sourcepub fn cached_interface_flags(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_interface_flags( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
InterfaceFlags property
Get the cached value of the InterfaceFlags property, or None if the property is not cached.
Sourcepub async fn receive_interface_flags_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_interface_flags_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
InterfaceFlags property
Create a stream for the InterfaceFlags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn ip4_address(&self) -> Result<u32>
pub async fn ip4_address(&self) -> Result<u32>
Ip4Address property
Sourcepub fn cached_ip4_address(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_ip4_address( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Ip4Address property
Get the cached value of the Ip4Address property, or None if the property is not cached.
Sourcepub async fn receive_ip4_address_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_ip4_address_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Ip4Address property
Create a stream for the Ip4Address 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 ip4_connectivity(&self) -> Result<u32>
pub async fn ip4_connectivity(&self) -> Result<u32>
Ip4Connectivity property
Sourcepub fn cached_ip4_connectivity(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_ip4_connectivity( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Ip4Connectivity property
Get the cached value of the Ip4Connectivity property, or None if the property is not cached.
Sourcepub async fn receive_ip4_connectivity_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_ip4_connectivity_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Ip4Connectivity property
Create a stream for the Ip4Connectivity 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 ip6_connectivity(&self) -> Result<u32>
pub async fn ip6_connectivity(&self) -> Result<u32>
Ip6Connectivity property
Sourcepub fn cached_ip6_connectivity(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_ip6_connectivity( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Ip6Connectivity property
Get the cached value of the Ip6Connectivity property, or None if the property is not cached.
Sourcepub async fn receive_ip6_connectivity_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_ip6_connectivity_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Ip6Connectivity property
Create a stream for the Ip6Connectivity property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn ip_interface(&self) -> Result<String>
pub async fn ip_interface(&self) -> Result<String>
IpInterface property
Sourcepub fn cached_ip_interface(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_ip_interface( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
IpInterface property
Get the cached value of the IpInterface property, or None if the property is not cached.
Sourcepub async fn receive_ip_interface_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_ip_interface_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
IpInterface property
Create a stream for the IpInterface property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn lldp_neighbors(&self) -> Result<Vec<HashMap<String, OwnedValue>>>
pub async fn lldp_neighbors(&self) -> Result<Vec<HashMap<String, OwnedValue>>>
LldpNeighbors property
Sourcepub fn cached_lldp_neighbors(
&self,
) -> Result<Option<<Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Ok>, <Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Err>
pub fn cached_lldp_neighbors( &self, ) -> Result<Option<<Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Ok>, <Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Err>
LldpNeighbors property
Get the cached value of the LldpNeighbors property, or None if the property is not cached.
Sourcepub async fn receive_lldp_neighbors_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Ok>
pub async fn receive_lldp_neighbors_changed( &self, ) -> PropertyStream<'p, <Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Ok>
LldpNeighbors property
Create a stream for the LldpNeighbors property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_managed(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_managed( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Managed property
Get the cached value of the Managed property, or None if the property is not cached.
Sourcepub async fn receive_managed_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_managed_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Managed property
Create a stream for the Managed property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
pub async fn set_managed(&self, value: bool) -> Result<()>
Sourcepub fn cached_metered(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_metered( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Metered property
Get the cached value of the Metered property, or None if the property is not cached.
Sourcepub async fn receive_metered_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_metered_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Metered property
Create a stream for the Metered property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_mtu(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_mtu( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Mtu property
Get the cached value of the Mtu property, or None if the property is not cached.
Sourcepub async fn receive_mtu_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_mtu_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Mtu property
Create a stream for the Mtu property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn nm_plugin_missing(&self) -> Result<bool>
pub async fn nm_plugin_missing(&self) -> Result<bool>
NmPluginMissing property
Sourcepub fn cached_nm_plugin_missing(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_nm_plugin_missing( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
NmPluginMissing property
Get the cached value of the NmPluginMissing property, or None if the property is not cached.
Sourcepub async fn receive_nm_plugin_missing_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_nm_plugin_missing_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
NmPluginMissing property
Create a stream for the NmPluginMissing property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_path(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_path( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Path property
Get the cached value of the Path property, or None if the property is not cached.
Sourcepub async fn receive_path_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_path_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Path property
Create a stream for the Path property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn physical_port_id(&self) -> Result<String>
pub async fn physical_port_id(&self) -> Result<String>
PhysicalPortId property
Sourcepub fn cached_physical_port_id(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_physical_port_id( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
PhysicalPortId property
Get the cached value of the PhysicalPortId property, or None if the property is not cached.
Sourcepub async fn receive_physical_port_id_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_physical_port_id_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
PhysicalPortId property
Create a stream for the PhysicalPortId property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn ports(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn ports(&self) -> Result<Vec<OwnedObjectPath>>
Ports property
Sourcepub fn cached_ports(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_ports( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
Ports property
Get the cached value of the Ports property, or None if the property is not cached.
Sourcepub async fn receive_ports_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
pub async fn receive_ports_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
Ports property
Create a stream for the Ports property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_real(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_real( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Real property
Get the cached value of the Real property, or None if the property is not cached.
Sourcepub async fn receive_real_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_real_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Real property
Create a stream for the Real 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_reason(&self) -> Result<(u32, u32)>
pub async fn state_reason(&self) -> Result<(u32, u32)>
StateReason property
Sourcepub fn cached_state_reason(
&self,
) -> Result<Option<<Result<(u32, u32)> as ResultAdapter>::Ok>, <Result<(u32, u32)> as ResultAdapter>::Err>
pub fn cached_state_reason( &self, ) -> Result<Option<<Result<(u32, u32)> as ResultAdapter>::Ok>, <Result<(u32, u32)> as ResultAdapter>::Err>
StateReason property
Get the cached value of the StateReason property, or None if the property is not cached.
Sourcepub async fn receive_state_reason_changed(
&self,
) -> PropertyStream<'p, <Result<(u32, u32)> as ResultAdapter>::Ok>
pub async fn receive_state_reason_changed( &self, ) -> PropertyStream<'p, <Result<(u32, u32)> as ResultAdapter>::Ok>
StateReason property
Create a stream for the StateReason property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_udi(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_udi( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Udi property
Get the cached value of the Udi property, or None if the property is not cached.
Sourcepub async fn receive_udi_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_udi_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Udi property
Create a stream for the Udi property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for DeviceProxy<'p>
impl<'p> AsMut<Proxy<'p>> for DeviceProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for DeviceProxy<'p>
impl<'p> AsRef<Proxy<'p>> for DeviceProxy<'p>
Source§impl<'p> Clone for DeviceProxy<'p>
impl<'p> Clone for DeviceProxy<'p>
Source§fn clone(&self) -> DeviceProxy<'p>
fn clone(&self) -> DeviceProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more