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