Struct ashpd::desktop::settings::SettingsProxy[][src]

pub struct SettingsProxy<'a>(_);
Expand description

The interface provides read-only access to a small number of host settings required for toolkits similar to XSettings. It is not for general purpose settings.

Implementations

Create a new instance of SettingsProxy.

Get a reference to the underlying Proxy.

Reads a single value. Returns an error on any unknown namespace or key.

Returns a HashMap of namespaces to its keys and values.

Arguments

  • namespaces - List of namespaces to filter results by.

If namespaces is an empty array or contains an empty string it matches all. Globing is supported but only for trailing sections, e.g. “org.example.*”.

Reads a single value. Returns an error on any unknown namespace or key.

Returns the value key is to to as a zvariant::OwnedValue.

Arguments

  • namespace - Namespace to look up key in.
  • key - The key to get.

Signal emitted when a setting changes.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.