Struct rusty_network_manager::SettingsProxy
source · pub struct SettingsProxy<'p>(/* private fields */);
Implementations§
source§impl SettingsProxy<'_>
impl SettingsProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection ) -> Result<SettingsProxy<'_>>
source§impl<'p> SettingsProxy<'p>
impl<'p> SettingsProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<SettingsProxy<'p>>
pub async fn new(conn: &Connection) -> Result<SettingsProxy<'p>>
Creates a new proxy with the default service and path.
sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
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
.
sourcepub async fn add_connection(
&self,
connection: HashMap<&str, HashMap<&str, Value<'_>>>
) -> Result<OwnedObjectPath>
pub async fn add_connection( &self, connection: HashMap<&str, HashMap<&str, Value<'_>>> ) -> Result<OwnedObjectPath>
AddConnection method
sourcepub async fn add_connection2(
&self,
settings: HashMap<&str, HashMap<&str, Value<'_>>>,
flags: u32,
args: HashMap<&str, Value<'_>>
) -> Result<(OwnedObjectPath, HashMap<String, OwnedValue>)>
pub async fn add_connection2( &self, settings: HashMap<&str, HashMap<&str, Value<'_>>>, flags: u32, args: HashMap<&str, Value<'_>> ) -> Result<(OwnedObjectPath, HashMap<String, OwnedValue>)>
AddConnection2 method
sourcepub async fn add_connection_unsaved(
&self,
connection: HashMap<&str, HashMap<&str, Value<'_>>>
) -> Result<OwnedObjectPath>
pub async fn add_connection_unsaved( &self, connection: HashMap<&str, HashMap<&str, Value<'_>>> ) -> Result<OwnedObjectPath>
AddConnectionUnsaved method
sourcepub async fn get_connection_by_uuid(
&self,
uuid: &str
) -> Result<OwnedObjectPath>
pub async fn get_connection_by_uuid( &self, uuid: &str ) -> Result<OwnedObjectPath>
GetConnectionByUuid method
sourcepub async fn list_connections(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn list_connections(&self) -> Result<Vec<OwnedObjectPath>>
ListConnections method
sourcepub async fn load_connections(
&self,
filenames: &[&str]
) -> Result<(bool, Vec<String>)>
pub async fn load_connections( &self, filenames: &[&str] ) -> Result<(bool, Vec<String>)>
LoadConnections method
sourcepub async fn reload_connections(&self) -> Result<bool>
pub async fn reload_connections(&self) -> Result<bool>
ReloadConnections method
sourcepub async fn save_hostname(&self, hostname: &str) -> Result<()>
pub async fn save_hostname(&self, hostname: &str) -> Result<()>
SaveHostname method
sourcepub async fn receive_connection_removed(
&self
) -> Result<ConnectionRemovedStream<'static>>
pub async fn receive_connection_removed( &self ) -> Result<ConnectionRemovedStream<'static>>
Create a stream that receives ConnectionRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
ConnectionRemoved signal
sourcepub async fn receive_connection_removed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<ConnectionRemovedStream<'static>>
pub async fn receive_connection_removed_with_args( &self, args: &[(u8, &str)] ) -> Result<ConnectionRemovedStream<'static>>
Create a stream that receives ConnectionRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
ConnectionRemoved signal
sourcepub async fn receive_new_connection(
&self
) -> Result<NewConnectionStream<'static>>
pub async fn receive_new_connection( &self ) -> Result<NewConnectionStream<'static>>
Create a stream that receives NewConnection
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
NewConnection signal
sourcepub async fn receive_new_connection_with_args(
&self,
args: &[(u8, &str)]
) -> Result<NewConnectionStream<'static>>
pub async fn receive_new_connection_with_args( &self, args: &[(u8, &str)] ) -> Result<NewConnectionStream<'static>>
Create a stream that receives NewConnection
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
NewConnection signal
sourcepub async fn can_modify(&self) -> Result<bool>
pub async fn can_modify(&self) -> Result<bool>
CanModify property
sourcepub fn cached_can_modify(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_can_modify( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the CanModify
property, or None
if the property is not cached.
sourcepub async fn receive_can_modify_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_can_modify_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the CanModify
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn connections(&self) -> Result<Vec<OwnedObjectPath>>
pub async fn connections(&self) -> Result<Vec<OwnedObjectPath>>
Connections property
sourcepub fn cached_connections(
&self
) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>
pub fn cached_connections( &self ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> 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>> as ResultAdapter>::Ok>
pub async fn receive_connections_changed( &self ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>
Create a stream for the Connections
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub fn cached_hostname(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_hostname( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the Hostname
property, or None
if the property is not cached.
sourcepub async fn receive_hostname_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_hostname_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the Hostname
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn version_id(&self) -> Result<u64>
pub async fn version_id(&self) -> Result<u64>
VersionId property
sourcepub fn cached_version_id(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_version_id( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the VersionId
property, or None
if the property is not cached.
sourcepub async fn receive_version_id_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_version_id_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the VersionId
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for SettingsProxy<'p>
impl<'p> AsMut<Proxy<'p>> for SettingsProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for SettingsProxy<'p>
impl<'p> AsRef<Proxy<'p>> for SettingsProxy<'p>
source§impl<'p> Clone for SettingsProxy<'p>
impl<'p> Clone for SettingsProxy<'p>
source§fn clone(&self) -> SettingsProxy<'p>
fn clone(&self) -> SettingsProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more