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