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<'static>>
pub async fn receive_removed(&self) -> Result<RemovedStream<'static>>
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<'static>>
pub async fn receive_updated(&self) -> Result<UpdatedStream<'static>>
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>
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>
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>
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>
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>
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>
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