pub struct NetworkManagerDeviceProxyBlocking<'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> NetworkManagerDeviceProxyBlocking<'p>
impl<'p> NetworkManagerDeviceProxyBlocking<'p>
Sourcepub fn new<P>(
conn: &Connection,
path: P,
) -> Result<NetworkManagerDeviceProxyBlocking<'p>, Error>
pub fn new<P>( conn: &Connection, path: P, ) -> Result<NetworkManagerDeviceProxyBlocking<'p>, Error>
Creates a new proxy with the given path, and the default destination.
Sourcepub fn builder(
conn: &Connection,
) -> Builder<'p, NetworkManagerDeviceProxyBlocking<'p>>
pub fn builder( conn: &Connection, ) -> Builder<'p, NetworkManagerDeviceProxyBlocking<'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 fn disconnect(&self) -> Result<(), Error>
pub 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 fn receive_state_changed(
&self,
) -> PropertyIterator<'p, <Result<NMDeviceState, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_state_changed( &self, ) -> PropertyIterator<'p, <Result<NMDeviceState, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the State property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub 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 fn receive_device_type_changed(
&self,
) -> PropertyIterator<'p, <Result<NMDeviceType, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_device_type_changed( &self, ) -> PropertyIterator<'p, <Result<NMDeviceType, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the DeviceType property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub 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 fn receive_interface_changed(
&self,
) -> PropertyIterator<'p, <Result<String, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_interface_changed( &self, ) -> PropertyIterator<'p, <Result<String, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the Interface property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub 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 fn receive_active_connection_changed(
&self,
) -> PropertyIterator<'p, <Result<OwnedObjectPath, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_active_connection_changed( &self, ) -> PropertyIterator<'p, <Result<OwnedObjectPath, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the ActiveConnection property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for NetworkManagerDeviceProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for NetworkManagerDeviceProxyBlocking<'p>
Source§impl<'p> Clone for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> Clone for NetworkManagerDeviceProxyBlocking<'p>
Source§fn clone(&self) -> NetworkManagerDeviceProxyBlocking<'p>
fn clone(&self) -> NetworkManagerDeviceProxyBlocking<'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 NetworkManagerDeviceProxyBlocking<'p>
impl<'p> Debug for NetworkManagerDeviceProxyBlocking<'p>
Source§impl<'a> Defaults for NetworkManagerDeviceProxyBlocking<'a>
impl<'a> Defaults for NetworkManagerDeviceProxyBlocking<'a>
Source§impl<'p> From<Proxy<'p>> for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for NetworkManagerDeviceProxyBlocking<'p>
Source§fn from(proxy: Proxy<'p>) -> NetworkManagerDeviceProxyBlocking<'p>
fn from(proxy: Proxy<'p>) -> NetworkManagerDeviceProxyBlocking<'p>
Source§impl<'p> ProxyImpl<'p> for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for NetworkManagerDeviceProxyBlocking<'p>
Source§fn builder(
conn: &Connection,
) -> Builder<'p, NetworkManagerDeviceProxyBlocking<'p>>
fn builder( conn: &Connection, ) -> Builder<'p, NetworkManagerDeviceProxyBlocking<'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 NetworkManagerDeviceProxyBlocking<'p>
impl<'p> Serialize for NetworkManagerDeviceProxyBlocking<'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 NetworkManagerDeviceProxyBlocking<'p>
impl<'p> !RefUnwindSafe for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> Send for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> Sync for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> Unpin for NetworkManagerDeviceProxyBlocking<'p>
impl<'p> !UnwindSafe for NetworkManagerDeviceProxyBlocking<'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