pub struct NetworkManagerProxy<'p>(/* private fields */);Expand description
Implementations§
Source§impl<'p> NetworkManagerProxy<'p>
impl<'p> NetworkManagerProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<NetworkManagerProxy<'p>, Error>
pub async fn new(conn: &Connection) -> Result<NetworkManagerProxy<'p>, Error>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, NetworkManagerProxy<'p>>
pub fn builder(conn: &Connection) -> Builder<'p, NetworkManagerProxy<'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 get_devices(&self) -> Result<Vec<OwnedObjectPath>, Error>
pub async fn get_all_devices(&self) -> Result<Vec<OwnedObjectPath>, Error>
pub async fn sleep(&self, sleep: bool) -> Result<(), Error>
pub async fn enable(&self, enable: bool) -> Result<(), Error>
pub async fn deactivate_connection( &self, active_connection: OwnedObjectPath, ) -> Result<Vec<OwnedObjectPath>, Error>
pub async fn activate_connection( &self, connection: OwnedObjectPath, device: OwnedObjectPath, specific_object: OwnedObjectPath, ) -> Result<OwnedObjectPath, Error>
pub async fn active_connections(&self) -> Result<Vec<OwnedObjectPath>, Error>
Sourcepub fn cached_active_connections(
&self,
) -> Result<Option<<Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Err>
pub fn cached_active_connections( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Err>
Get the cached value of the ActiveConnections property, or None if the property is not cached.
Sourcepub async fn receive_active_connections_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>
pub async fn receive_active_connections_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>, Error> as ResultAdapter>::Ok>
Create a stream for the ActiveConnections property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn networking_enabled(&self) -> Result<bool, Error>
Sourcepub fn cached_networking_enabled(
&self,
) -> Result<Option<<Result<bool, Error> as ResultAdapter>::Ok>, <Result<bool, Error> as ResultAdapter>::Err>
pub fn cached_networking_enabled( &self, ) -> Result<Option<<Result<bool, Error> as ResultAdapter>::Ok>, <Result<bool, Error> as ResultAdapter>::Err>
Get the cached value of the NetworkingEnabled property, or None if the property is not cached.
Sourcepub async fn receive_networking_enabled_changed(
&self,
) -> PropertyStream<'p, <Result<bool, Error> as ResultAdapter>::Ok>
pub async fn receive_networking_enabled_changed( &self, ) -> PropertyStream<'p, <Result<bool, Error> as ResultAdapter>::Ok>
Create a stream for the NetworkingEnabled property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn wireless_enabled(&self) -> Result<bool, Error>
Sourcepub fn cached_wireless_enabled(
&self,
) -> Result<Option<<Result<bool, Error> as ResultAdapter>::Ok>, <Result<bool, Error> as ResultAdapter>::Err>
pub fn cached_wireless_enabled( &self, ) -> Result<Option<<Result<bool, Error> as ResultAdapter>::Ok>, <Result<bool, Error> as ResultAdapter>::Err>
Get the cached value of the WirelessEnabled property, or None if the property is not cached.
Sourcepub async fn receive_wireless_enabled_changed(
&self,
) -> PropertyStream<'p, <Result<bool, Error> as ResultAdapter>::Ok>
pub async fn receive_wireless_enabled_changed( &self, ) -> PropertyStream<'p, <Result<bool, Error> as ResultAdapter>::Ok>
Create a stream for the WirelessEnabled property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn wwan_enabled(&self) -> Result<bool, Error>
Sourcepub fn cached_wwan_enabled(
&self,
) -> Result<Option<<Result<bool, Error> as ResultAdapter>::Ok>, <Result<bool, Error> as ResultAdapter>::Err>
pub fn cached_wwan_enabled( &self, ) -> Result<Option<<Result<bool, Error> as ResultAdapter>::Ok>, <Result<bool, Error> as ResultAdapter>::Err>
Get the cached value of the WwanEnabled property, or None if the property is not cached.
Sourcepub async fn receive_wwan_enabled_changed(
&self,
) -> PropertyStream<'p, <Result<bool, Error> as ResultAdapter>::Ok>
pub async fn receive_wwan_enabled_changed( &self, ) -> PropertyStream<'p, <Result<bool, Error> as ResultAdapter>::Ok>
Create a stream for the WwanEnabled property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn version(&self) -> Result<String, Error>
Sourcepub fn cached_version(
&self,
) -> Result<Option<<Result<String, Error> as ResultAdapter>::Ok>, <Result<String, Error> as ResultAdapter>::Err>
pub fn cached_version( &self, ) -> Result<Option<<Result<String, Error> as ResultAdapter>::Ok>, <Result<String, Error> as ResultAdapter>::Err>
Get the cached value of the Version property, or None if the property is not cached.
Sourcepub async fn receive_version_changed(
&self,
) -> PropertyStream<'p, <Result<String, Error> as ResultAdapter>::Ok>
pub async fn receive_version_changed( &self, ) -> PropertyStream<'p, <Result<String, Error> as ResultAdapter>::Ok>
Create a stream for the Version property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn state(&self) -> Result<NMState, Error>
Sourcepub fn cached_state(
&self,
) -> Result<Option<<Result<NMState, Error> as ResultAdapter>::Ok>, <Result<NMState, Error> as ResultAdapter>::Err>
pub fn cached_state( &self, ) -> Result<Option<<Result<NMState, Error> as ResultAdapter>::Ok>, <Result<NMState, 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<NMState, Error> as ResultAdapter>::Ok>
pub async fn receive_state_changed( &self, ) -> PropertyStream<'p, <Result<NMState, 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 connectivity(&self) -> Result<NMConnectivityState, Error>
Sourcepub fn cached_connectivity(
&self,
) -> Result<Option<<Result<NMConnectivityState, Error> as ResultAdapter>::Ok>, <Result<NMConnectivityState, Error> as ResultAdapter>::Err>
pub fn cached_connectivity( &self, ) -> Result<Option<<Result<NMConnectivityState, Error> as ResultAdapter>::Ok>, <Result<NMConnectivityState, Error> as ResultAdapter>::Err>
Get the cached value of the Connectivity property, or None if the property is not cached.
Sourcepub async fn receive_connectivity_changed(
&self,
) -> PropertyStream<'p, <Result<NMConnectivityState, Error> as ResultAdapter>::Ok>
pub async fn receive_connectivity_changed( &self, ) -> PropertyStream<'p, <Result<NMConnectivityState, Error> as ResultAdapter>::Ok>
Create a stream for the Connectivity property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
Sourcepub async fn receive_properties_changed(
&self,
) -> Result<PropertiesChangedStream, Error>
pub async fn receive_properties_changed( &self, ) -> Result<PropertiesChangedStream, Error>
Create a stream that receives PropertiesChanged signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Sourcepub async fn receive_properties_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<PropertiesChangedStream, Error>
pub async fn receive_properties_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<PropertiesChangedStream, Error>
Create a stream that receives PropertiesChanged signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for NetworkManagerProxy<'p>
impl<'p> AsMut<Proxy<'p>> for NetworkManagerProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for NetworkManagerProxy<'p>
impl<'p> AsRef<Proxy<'p>> for NetworkManagerProxy<'p>
Source§impl<'p> Clone for NetworkManagerProxy<'p>
impl<'p> Clone for NetworkManagerProxy<'p>
Source§fn clone(&self) -> NetworkManagerProxy<'p>
fn clone(&self) -> NetworkManagerProxy<'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 NetworkManagerProxy<'p>
impl<'p> Debug for NetworkManagerProxy<'p>
Source§impl<'a> Defaults for NetworkManagerProxy<'a>
impl<'a> Defaults for NetworkManagerProxy<'a>
Source§impl<'p> From<Proxy<'p>> for NetworkManagerProxy<'p>
impl<'p> From<Proxy<'p>> for NetworkManagerProxy<'p>
Source§fn from(proxy: Proxy<'p>) -> NetworkManagerProxy<'p>
fn from(proxy: Proxy<'p>) -> NetworkManagerProxy<'p>
Source§impl<'p> ProxyImpl<'p> for NetworkManagerProxy<'p>
impl<'p> ProxyImpl<'p> for NetworkManagerProxy<'p>
Source§fn builder(conn: &Connection) -> Builder<'p, NetworkManagerProxy<'p>>
fn builder(conn: &Connection) -> Builder<'p, NetworkManagerProxy<'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 NetworkManagerProxy<'p>
impl<'p> Serialize for NetworkManagerProxy<'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 NetworkManagerProxy<'p>
impl<'p> !RefUnwindSafe for NetworkManagerProxy<'p>
impl<'p> Send for NetworkManagerProxy<'p>
impl<'p> Sync for NetworkManagerProxy<'p>
impl<'p> Unpin for NetworkManagerProxy<'p>
impl<'p> !UnwindSafe for NetworkManagerProxy<'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