pub struct StatisticsProxy<'p>(/* private fields */);Implementations§
Source§impl StatisticsProxy<'_>
impl StatisticsProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<StatisticsProxy<'_>>
Source§impl<'p> StatisticsProxy<'p>
impl<'p> StatisticsProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<StatisticsProxy<'p>>
pub async fn new(conn: &Connection) -> Result<StatisticsProxy<'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 refresh_rate_ms(&self) -> Result<u32>
pub async fn refresh_rate_ms(&self) -> Result<u32>
RefreshRateMs property
Sourcepub fn cached_refresh_rate_ms(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_refresh_rate_ms( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
RefreshRateMs property
Get the cached value of the RefreshRateMs property, or None if the property is not cached.
Sourcepub async fn receive_refresh_rate_ms_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_refresh_rate_ms_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
RefreshRateMs property
Create a stream for the RefreshRateMs property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
pub async fn set_refresh_rate_ms(&self, value: u32) -> Result<()>
Sourcepub fn cached_rx_bytes(
&self,
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_rx_bytes( &self, ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
RxBytes property
Get the cached value of the RxBytes property, or None if the property is not cached.
Sourcepub async fn receive_rx_bytes_changed(
&self,
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_rx_bytes_changed( &self, ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
RxBytes property
Create a stream for the RxBytes property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_tx_bytes(
&self,
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_tx_bytes( &self, ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
TxBytes property
Get the cached value of the TxBytes property, or None if the property is not cached.
Sourcepub async fn receive_tx_bytes_changed(
&self,
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_tx_bytes_changed( &self, ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
TxBytes property
Create a stream for the TxBytes property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for StatisticsProxy<'p>
impl<'p> AsMut<Proxy<'p>> for StatisticsProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for StatisticsProxy<'p>
impl<'p> AsRef<Proxy<'p>> for StatisticsProxy<'p>
Source§impl<'p> Clone for StatisticsProxy<'p>
impl<'p> Clone for StatisticsProxy<'p>
Source§fn clone(&self) -> StatisticsProxy<'p>
fn clone(&self) -> StatisticsProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more