pub struct CosmicSettingsDaemonProxy<'p>(/* private fields */);
Implementations§
Source§impl<'p> CosmicSettingsDaemonProxy<'p>
impl<'p> CosmicSettingsDaemonProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<CosmicSettingsDaemonProxy<'p>>
pub async fn new(conn: &Connection) -> Result<CosmicSettingsDaemonProxy<'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 decrease_display_brightness(&self) -> Result<()>
pub async fn decrease_display_brightness(&self) -> Result<()>
DecreaseDisplayBrightness method
Sourcepub async fn decrease_keyboard_brightness(&self) -> Result<()>
pub async fn decrease_keyboard_brightness(&self) -> Result<()>
DecreaseKeyboardBrightness method
Sourcepub async fn increase_display_brightness(&self) -> Result<()>
pub async fn increase_display_brightness(&self) -> Result<()>
IncreaseDisplayBrightness method
Sourcepub async fn increase_keyboard_brightness(&self) -> Result<()>
pub async fn increase_keyboard_brightness(&self) -> Result<()>
IncreaseKeyboardBrightness method
Sourcepub async fn watch_config(
&self,
id: &str,
version: u64,
) -> Result<(OwnedObjectPath, OwnedWellKnownName)>
pub async fn watch_config( &self, id: &str, version: u64, ) -> Result<(OwnedObjectPath, OwnedWellKnownName)>
WatchConfig method
Sourcepub async fn watch_state(
&self,
id: &str,
version: u64,
) -> Result<(OwnedObjectPath, OwnedWellKnownName)>
pub async fn watch_state( &self, id: &str, version: u64, ) -> Result<(OwnedObjectPath, OwnedWellKnownName)>
WatchState method
Sourcepub async fn display_brightness(&self) -> Result<i32>
pub async fn display_brightness(&self) -> Result<i32>
DisplayBrightness property
Sourcepub fn cached_display_brightness(
&self,
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_display_brightness( &self, ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
DisplayBrightness property
Get the cached value of the DisplayBrightness
property, or None
if the property is not cached.
Sourcepub async fn receive_display_brightness_changed(
&self,
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_display_brightness_changed( &self, ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
DisplayBrightness property
Create a stream for the DisplayBrightness
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
pub async fn set_display_brightness(&self, value: i32) -> Result<()>
Sourcepub async fn keyboard_brightness(&self) -> Result<i32>
pub async fn keyboard_brightness(&self) -> Result<i32>
KeyboardBrightness property
Sourcepub fn cached_keyboard_brightness(
&self,
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_keyboard_brightness( &self, ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
KeyboardBrightness property
Get the cached value of the KeyboardBrightness
property, or None
if the property is not cached.
Sourcepub async fn receive_keyboard_brightness_changed(
&self,
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_keyboard_brightness_changed( &self, ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
KeyboardBrightness property
Create a stream for the KeyboardBrightness
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
pub async fn set_keyboard_brightness(&self, value: i32) -> Result<()>
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for CosmicSettingsDaemonProxy<'p>
impl<'p> AsMut<Proxy<'p>> for CosmicSettingsDaemonProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for CosmicSettingsDaemonProxy<'p>
impl<'p> AsRef<Proxy<'p>> for CosmicSettingsDaemonProxy<'p>
Source§impl<'p> Clone for CosmicSettingsDaemonProxy<'p>
impl<'p> Clone for CosmicSettingsDaemonProxy<'p>
Source§fn clone(&self) -> CosmicSettingsDaemonProxy<'p>
fn clone(&self) -> CosmicSettingsDaemonProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more