pub struct NetworkManagerSettingsProxyBlocking<'p>(/* private fields */);Expand description
Network Manager Settings DBus interface
See: https://people.freedesktop.org/~lkundrak/nm-docs/gdbus-org.freedesktop.NetworkManager.Settings
Implementations§
Source§impl<'p> NetworkManagerSettingsProxyBlocking<'p>
impl<'p> NetworkManagerSettingsProxyBlocking<'p>
Sourcepub fn new(
conn: &Connection,
) -> Result<NetworkManagerSettingsProxyBlocking<'p>, Error>
pub fn new( conn: &Connection, ) -> Result<NetworkManagerSettingsProxyBlocking<'p>, Error>
Creates a new proxy with the default service and path.
Sourcepub fn builder(
conn: &Connection,
) -> Builder<'p, NetworkManagerSettingsProxyBlocking<'p>>
pub fn builder( conn: &Connection, ) -> Builder<'p, NetworkManagerSettingsProxyBlocking<'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 list_connections(&self) -> Result<Vec<OwnedObjectPath>, Error>
pub fn connections(&self) -> Result<Vec<OwnedObjectPath>, Error>
Sourcepub fn cached_connections(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Err>
pub fn cached_connections( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Err>
Get the cached value of the Connections property, or None if the property is not cached.
Sourcepub fn receive_connections_changed(
&self,
) -> PropertyIterator<'p, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_connections_changed( &self, ) -> PropertyIterator<'p, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the Connections property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for NetworkManagerSettingsProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for NetworkManagerSettingsProxyBlocking<'p>
Source§impl<'p> Clone for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> Clone for NetworkManagerSettingsProxyBlocking<'p>
Source§fn clone(&self) -> NetworkManagerSettingsProxyBlocking<'p>
fn clone(&self) -> NetworkManagerSettingsProxyBlocking<'p>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'p> Debug for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> Debug for NetworkManagerSettingsProxyBlocking<'p>
Source§impl<'a> Defaults for NetworkManagerSettingsProxyBlocking<'a>
impl<'a> Defaults for NetworkManagerSettingsProxyBlocking<'a>
Source§impl<'p> From<Proxy<'p>> for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for NetworkManagerSettingsProxyBlocking<'p>
Source§fn from(proxy: Proxy<'p>) -> NetworkManagerSettingsProxyBlocking<'p>
fn from(proxy: Proxy<'p>) -> NetworkManagerSettingsProxyBlocking<'p>
Converts to this type from the input type.
Source§impl<'p> ProxyImpl<'p> for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for NetworkManagerSettingsProxyBlocking<'p>
Source§fn builder(
conn: &Connection,
) -> Builder<'p, NetworkManagerSettingsProxyBlocking<'p>>
fn builder( conn: &Connection, ) -> Builder<'p, NetworkManagerSettingsProxyBlocking<'p>>
Return a customizable builder for this proxy.
Source§fn into_inner(self) -> Proxy<'p>
fn into_inner(self) -> Proxy<'p>
Consume
self, returning the underlying zbus::Proxy.Source§impl<'p> Serialize for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> Serialize for NetworkManagerSettingsProxyBlocking<'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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'p> Freeze for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> !RefUnwindSafe for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> Send for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> Sync for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> Unpin for NetworkManagerSettingsProxyBlocking<'p>
impl<'p> !UnwindSafe for NetworkManagerSettingsProxyBlocking<'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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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