pub struct NetworkManagerSettingsProxy<'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> NetworkManagerSettingsProxy<'p>
impl<'p> NetworkManagerSettingsProxy<'p>
Sourcepub async fn new(
conn: &Connection,
) -> Result<NetworkManagerSettingsProxy<'p>, Error>
pub async fn new( conn: &Connection, ) -> Result<NetworkManagerSettingsProxy<'p>, Error>
Creates a new proxy with the default service and path.
Sourcepub fn builder(
conn: &Connection,
) -> Builder<'p, NetworkManagerSettingsProxy<'p>>
pub fn builder( conn: &Connection, ) -> Builder<'p, NetworkManagerSettingsProxy<'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 list_connections(&self) -> Result<Vec<OwnedObjectPath>, Error>
pub async 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 async fn receive_connections_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>
pub async fn receive_connections_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>
Create a stream for the Connections property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for NetworkManagerSettingsProxy<'p>
impl<'p> AsMut<Proxy<'p>> for NetworkManagerSettingsProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for NetworkManagerSettingsProxy<'p>
impl<'p> AsRef<Proxy<'p>> for NetworkManagerSettingsProxy<'p>
Source§impl<'p> Clone for NetworkManagerSettingsProxy<'p>
impl<'p> Clone for NetworkManagerSettingsProxy<'p>
Source§fn clone(&self) -> NetworkManagerSettingsProxy<'p>
fn clone(&self) -> NetworkManagerSettingsProxy<'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 NetworkManagerSettingsProxy<'p>
impl<'p> Debug for NetworkManagerSettingsProxy<'p>
Source§impl<'a> Defaults for NetworkManagerSettingsProxy<'a>
impl<'a> Defaults for NetworkManagerSettingsProxy<'a>
Source§impl<'p> From<Proxy<'p>> for NetworkManagerSettingsProxy<'p>
impl<'p> From<Proxy<'p>> for NetworkManagerSettingsProxy<'p>
Source§fn from(proxy: Proxy<'p>) -> NetworkManagerSettingsProxy<'p>
fn from(proxy: Proxy<'p>) -> NetworkManagerSettingsProxy<'p>
Converts to this type from the input type.
Source§impl<'p> ProxyImpl<'p> for NetworkManagerSettingsProxy<'p>
impl<'p> ProxyImpl<'p> for NetworkManagerSettingsProxy<'p>
Source§fn builder(conn: &Connection) -> Builder<'p, NetworkManagerSettingsProxy<'p>>
fn builder(conn: &Connection) -> Builder<'p, NetworkManagerSettingsProxy<'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 NetworkManagerSettingsProxy<'p>
impl<'p> Serialize for NetworkManagerSettingsProxy<'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 NetworkManagerSettingsProxy<'p>
impl<'p> !RefUnwindSafe for NetworkManagerSettingsProxy<'p>
impl<'p> Send for NetworkManagerSettingsProxy<'p>
impl<'p> Sync for NetworkManagerSettingsProxy<'p>
impl<'p> Unpin for NetworkManagerSettingsProxy<'p>
impl<'p> !UnwindSafe for NetworkManagerSettingsProxy<'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