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