pub struct NetworkManagerDeviceProxy<'p>(/* private fields */);Expand description
Netowkr Manager Device DBus interface
See: https://people.freedesktop.org/~lkundrak/nm-docs/gdbus-org.freedesktop.NetworkManager.Device.html
Implementations§
Source§impl<'p> NetworkManagerDeviceProxy<'p>
impl<'p> NetworkManagerDeviceProxy<'p>
Sourcepub async fn new<P>(
conn: &Connection,
path: P,
) -> Result<NetworkManagerDeviceProxy<'p>, Error>
pub async fn new<P>( conn: &Connection, path: P, ) -> Result<NetworkManagerDeviceProxy<'p>, Error>
Creates a new proxy with the given path, and the default destination.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, NetworkManagerDeviceProxy<'p>>
pub fn builder(conn: &Connection) -> Builder<'p, NetworkManagerDeviceProxy<'p>>
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.
pub async fn disconnect(&self) -> Result<(), Error>
pub async fn state(&self) -> Result<NMDeviceState, Error>
Sourcepub fn cached_state(
&self,
) -> Result<Option<<Result<NMDeviceState, Error> as ResultAdapter>::Ok>, <Result<NMDeviceState, Error> as ResultAdapter>::Err>
pub fn cached_state( &self, ) -> Result<Option<<Result<NMDeviceState, Error> as ResultAdapter>::Ok>, <Result<NMDeviceState, Error> as ResultAdapter>::Err>
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<NMDeviceState, Error> as ResultAdapter>::Ok>
pub async fn receive_state_changed( &self, ) -> PropertyStream<'p, <Result<NMDeviceState, Error> as ResultAdapter>::Ok>
Create a stream for the State property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn device_type(&self) -> Result<NMDeviceType, Error>
Sourcepub fn cached_device_type(
&self,
) -> Result<Option<<Result<NMDeviceType, Error> as ResultAdapter>::Ok>, <Result<NMDeviceType, Error> as ResultAdapter>::Err>
pub fn cached_device_type( &self, ) -> Result<Option<<Result<NMDeviceType, Error> as ResultAdapter>::Ok>, <Result<NMDeviceType, Error> as ResultAdapter>::Err>
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<NMDeviceType, Error> as ResultAdapter>::Ok>
pub async fn receive_device_type_changed( &self, ) -> PropertyStream<'p, <Result<NMDeviceType, Error> as ResultAdapter>::Ok>
Create a stream for the DeviceType property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn interface(&self) -> Result<String, Error>
Sourcepub fn cached_interface(
&self,
) -> Result<Option<<Result<String, Error> as ResultAdapter>::Ok>, <Result<String, Error> as ResultAdapter>::Err>
pub fn cached_interface( &self, ) -> Result<Option<<Result<String, Error> as ResultAdapter>::Ok>, <Result<String, Error> as ResultAdapter>::Err>
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, Error> as ResultAdapter>::Ok>
pub async fn receive_interface_changed( &self, ) -> PropertyStream<'p, <Result<String, Error> as ResultAdapter>::Ok>
Create a stream for the Interface property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn active_connection(&self) -> Result<OwnedObjectPath, Error>
Sourcepub fn cached_active_connection(
&self,
) -> Result<Option<<Result<OwnedObjectPath, Error> as ResultAdapter>::Ok>, <Result<OwnedObjectPath, Error> as ResultAdapter>::Err>
pub fn cached_active_connection( &self, ) -> Result<Option<<Result<OwnedObjectPath, Error> as ResultAdapter>::Ok>, <Result<OwnedObjectPath, Error> as ResultAdapter>::Err>
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, Error> as ResultAdapter>::Ok>
pub async fn receive_active_connection_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath, Error> as ResultAdapter>::Ok>
Create a stream for the ActiveConnection property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for NetworkManagerDeviceProxy<'p>
impl<'p> AsMut<Proxy<'p>> for NetworkManagerDeviceProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for NetworkManagerDeviceProxy<'p>
impl<'p> AsRef<Proxy<'p>> for NetworkManagerDeviceProxy<'p>
Source§impl<'p> Clone for NetworkManagerDeviceProxy<'p>
impl<'p> Clone for NetworkManagerDeviceProxy<'p>
Source§fn clone(&self) -> NetworkManagerDeviceProxy<'p>
fn clone(&self) -> NetworkManagerDeviceProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'p> Debug for NetworkManagerDeviceProxy<'p>
impl<'p> Debug for NetworkManagerDeviceProxy<'p>
Source§impl<'a> Defaults for NetworkManagerDeviceProxy<'a>
impl<'a> Defaults for NetworkManagerDeviceProxy<'a>
Source§impl<'p> From<Proxy<'p>> for NetworkManagerDeviceProxy<'p>
impl<'p> From<Proxy<'p>> for NetworkManagerDeviceProxy<'p>
Source§fn from(proxy: Proxy<'p>) -> NetworkManagerDeviceProxy<'p>
fn from(proxy: Proxy<'p>) -> NetworkManagerDeviceProxy<'p>
Source§impl<'p> ProxyImpl<'p> for NetworkManagerDeviceProxy<'p>
impl<'p> ProxyImpl<'p> for NetworkManagerDeviceProxy<'p>
Source§fn builder(conn: &Connection) -> Builder<'p, NetworkManagerDeviceProxy<'p>>
fn builder(conn: &Connection) -> Builder<'p, NetworkManagerDeviceProxy<'p>>
Source§fn into_inner(self) -> Proxy<'p>
fn into_inner(self) -> Proxy<'p>
self, returning the underlying zbus::Proxy.Source§impl<'p> Serialize for NetworkManagerDeviceProxy<'p>
impl<'p> Serialize for NetworkManagerDeviceProxy<'p>
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Auto Trait Implementations§
impl<'p> Freeze for NetworkManagerDeviceProxy<'p>
impl<'p> !RefUnwindSafe for NetworkManagerDeviceProxy<'p>
impl<'p> Send for NetworkManagerDeviceProxy<'p>
impl<'p> Sync for NetworkManagerDeviceProxy<'p>
impl<'p> Unpin for NetworkManagerDeviceProxy<'p>
impl<'p> !UnwindSafe for NetworkManagerDeviceProxy<'p>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more