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>
pub async fn receive_connection_removed( &self, ) -> Result<ConnectionRemovedStream>
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>
pub async fn receive_connection_removed_with_args( &self, args: &[(u8, &str)], ) -> Result<ConnectionRemovedStream>
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>
pub async fn receive_new_connection(&self) -> Result<NewConnectionStream>
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>
pub async fn receive_new_connection_with_args( &self, args: &[(u8, &str)], ) -> Result<NewConnectionStream>
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>
CanModify property
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>
CanModify property
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>
Connections property
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>
Connections property
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>
Hostname property
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>
Hostname property
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>
VersionId property
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>
VersionId property
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