pub struct SettingsConnectionProxy<'p>(/* private fields */);Implementations§
Source§impl SettingsConnectionProxy<'_>
impl SettingsConnectionProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<SettingsConnectionProxy<'_>>
Source§impl<'p> SettingsConnectionProxy<'p>
impl<'p> SettingsConnectionProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<SettingsConnectionProxy<'p>>
pub async fn new(conn: &Connection) -> Result<SettingsConnectionProxy<'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 clear_secrets(&self) -> Result<()>
pub async fn clear_secrets(&self) -> Result<()>
ClearSecrets method
Sourcepub async fn get_secrets(
&self,
setting_name: &str,
) -> Result<HashMap<String, HashMap<String, OwnedValue>>>
pub async fn get_secrets( &self, setting_name: &str, ) -> Result<HashMap<String, HashMap<String, OwnedValue>>>
GetSecrets method
Sourcepub async fn get_settings(
&self,
) -> Result<HashMap<String, HashMap<String, OwnedValue>>>
pub async fn get_settings( &self, ) -> Result<HashMap<String, HashMap<String, OwnedValue>>>
GetSettings method
Sourcepub async fn update(
&self,
properties: HashMap<&str, HashMap<&str, Value<'_>>>,
) -> Result<()>
pub async fn update( &self, properties: HashMap<&str, HashMap<&str, Value<'_>>>, ) -> Result<()>
Update method
Sourcepub async fn update2(
&self,
settings: HashMap<&str, HashMap<&str, Value<'_>>>,
flags: u32,
args: HashMap<&str, Value<'_>>,
) -> Result<HashMap<String, OwnedValue>>
pub async fn update2( &self, settings: HashMap<&str, HashMap<&str, Value<'_>>>, flags: u32, args: HashMap<&str, Value<'_>>, ) -> Result<HashMap<String, OwnedValue>>
Update2 method
Sourcepub async fn update_unsaved(
&self,
properties: HashMap<&str, HashMap<&str, Value<'_>>>,
) -> Result<()>
pub async fn update_unsaved( &self, properties: HashMap<&str, HashMap<&str, Value<'_>>>, ) -> Result<()>
UpdateUnsaved method
Sourcepub async fn receive_removed(&self) -> Result<RemovedStream>
pub async fn receive_removed(&self) -> Result<RemovedStream>
Create a stream that receives Removed signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Removed signal
Sourcepub async fn receive_updated(&self) -> Result<UpdatedStream>
pub async fn receive_updated(&self) -> Result<UpdatedStream>
Create a stream that receives Updated signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Updated signal
Sourcepub fn cached_filename(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_filename( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Filename property
Get the cached value of the Filename property, or None if the property is not cached.
Sourcepub async fn receive_filename_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_filename_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Filename property
Create a stream for the Filename property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_flags(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_flags( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Flags property
Get the cached value of the Flags property, or None if the property is not cached.
Sourcepub async fn receive_flags_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_flags_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Flags property
Create a stream for the Flags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_unsaved(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_unsaved( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Unsaved property
Get the cached value of the Unsaved property, or None if the property is not cached.
Sourcepub async fn receive_unsaved_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_unsaved_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Unsaved property
Create a stream for the Unsaved property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for SettingsConnectionProxy<'p>
impl<'p> AsMut<Proxy<'p>> for SettingsConnectionProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for SettingsConnectionProxy<'p>
impl<'p> AsRef<Proxy<'p>> for SettingsConnectionProxy<'p>
Source§impl<'p> Clone for SettingsConnectionProxy<'p>
impl<'p> Clone for SettingsConnectionProxy<'p>
Source§fn clone(&self) -> SettingsConnectionProxy<'p>
fn clone(&self) -> SettingsConnectionProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more