Struct atspi_proxies::value::ValueProxy
source · pub struct ValueProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> ValueProxy<'p>
impl<'p> ValueProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<ValueProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ValueProxy<'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 current_value(&self) -> Result<f64>
pub async fn current_value(&self) -> Result<f64>
CurrentValue property
sourcepub fn cached_current_value(
&self
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_current_value( &self ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the CurrentValue
property, or None
if the property is not cached.
sourcepub async fn receive_current_value_changed(
&self
) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
pub async fn receive_current_value_changed( &self ) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
Create a stream for the CurrentValue
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn set_current_value(&self, value: f64) -> Result<()>
pub async fn set_current_value(&self, value: f64) -> Result<()>
Set CurrentValue property
sourcepub async fn maximum_value(&self) -> Result<f64>
pub async fn maximum_value(&self) -> Result<f64>
MaximumValue property
sourcepub fn cached_maximum_value(
&self
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_maximum_value( &self ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the MaximumValue
property, or None
if the property is not cached.
sourcepub async fn receive_maximum_value_changed(
&self
) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
pub async fn receive_maximum_value_changed( &self ) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
Create a stream for the MaximumValue
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn minimum_increment(&self) -> Result<f64>
pub async fn minimum_increment(&self) -> Result<f64>
MinimumIncrement property
sourcepub fn cached_minimum_increment(
&self
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_minimum_increment( &self ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the MinimumIncrement
property, or None
if the property is not cached.
sourcepub async fn receive_minimum_increment_changed(
&self
) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
pub async fn receive_minimum_increment_changed( &self ) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
Create a stream for the MinimumIncrement
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn minimum_value(&self) -> Result<f64>
pub async fn minimum_value(&self) -> Result<f64>
MinimumValue property
sourcepub fn cached_minimum_value(
&self
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_minimum_value( &self ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the MinimumValue
property, or None
if the property is not cached.
sourcepub async fn receive_minimum_value_changed(
&self
) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
pub async fn receive_minimum_value_changed( &self ) -> PropertyStream<'p, <Result<f64> as ResultAdapter>::Ok>
Create a stream for the MinimumValue
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for ValueProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ValueProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for ValueProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ValueProxy<'p>
source§impl<'p> Clone for ValueProxy<'p>
impl<'p> Clone for ValueProxy<'p>
source§fn clone(&self) -> ValueProxy<'p>
fn clone(&self) -> ValueProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more