pub struct WlGammarelayRsBusProxyBlocking<'p>(/* private fields */);
Implementations§
source§impl<'p> WlGammarelayRsBusProxyBlocking<'p>
impl<'p> WlGammarelayRsBusProxyBlocking<'p>
sourcepub fn new(conn: &Connection) -> Result<WlGammarelayRsBusProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<WlGammarelayRsBusProxyBlocking<'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 brightness(&self) -> Result<f64>
pub fn brightness(&self) -> Result<f64>
Brightness property
sourcepub fn cached_brightness(
&self
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_brightness( &self ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the Brightness
property, or None
if the property is not cached.
sourcepub fn receive_brightness_changed(
&self
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok>
pub fn receive_brightness_changed( &self ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok>
Create a stream for the Brightness
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
pub fn set_brightness(&self, value: f64) -> Result<()>
sourcepub fn temperature(&self) -> Result<u16>
pub fn temperature(&self) -> Result<u16>
Temperature property
sourcepub fn cached_temperature(
&self
) -> Result<Option<<Result<u16> as ResultAdapter>::Ok>, <Result<u16> as ResultAdapter>::Err>
pub fn cached_temperature( &self ) -> Result<Option<<Result<u16> as ResultAdapter>::Ok>, <Result<u16> as ResultAdapter>::Err>
Get the cached value of the Temperature
property, or None
if the property is not cached.
sourcepub fn receive_temperature_changed(
&self
) -> PropertyIterator<'p, <Result<u16> as ResultAdapter>::Ok>
pub fn receive_temperature_changed( &self ) -> PropertyIterator<'p, <Result<u16> as ResultAdapter>::Ok>
Create a stream for the Temperature
property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed
].
pub fn set_temperature(&self, value: u16) -> Result<()>
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for WlGammarelayRsBusProxyBlocking<'p>
source§impl<'p> AsRef<Proxy<'p>> for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for WlGammarelayRsBusProxyBlocking<'p>
source§impl<'p> Clone for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> Clone for WlGammarelayRsBusProxyBlocking<'p>
source§fn clone(&self) -> WlGammarelayRsBusProxyBlocking<'p>
fn clone(&self) -> WlGammarelayRsBusProxyBlocking<'p>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'p> Debug for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> Debug for WlGammarelayRsBusProxyBlocking<'p>
source§impl<'p> From<Proxy<'p>> for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for WlGammarelayRsBusProxyBlocking<'p>
source§impl<'a> ProxyDefault for WlGammarelayRsBusProxyBlocking<'a>
impl<'a> ProxyDefault for WlGammarelayRsBusProxyBlocking<'a>
source§impl<'p> ProxyImpl<'p> for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for WlGammarelayRsBusProxyBlocking<'p>
source§impl<'p> Serialize for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> Serialize for WlGammarelayRsBusProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> Freeze for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> !RefUnwindSafe for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> Send for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> Sync for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> Unpin for WlGammarelayRsBusProxyBlocking<'p>
impl<'p> !UnwindSafe for WlGammarelayRsBusProxyBlocking<'p>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more