pub struct NetworkConnectedDevice { /* private fields */ }Expand description
UPW Sensor device connected via a network connection
Trait Implementations§
Source§impl Device for NetworkConnectedDevice
impl Device for NetworkConnectedDevice
Source§async fn latest_measurement(&self) -> Result<Option<Measurement>, Error>
async fn latest_measurement(&self) -> Result<Option<Measurement>, Error>
Source§async fn latest_successful_measurement(
&self,
) -> Result<Option<SuccessfulMeasurement>, Error>
async fn latest_successful_measurement( &self, ) -> Result<Option<SuccessfulMeasurement>, Error>
Source§async fn measurement_history(&self) -> Result<Vec<Measurement>, Error>
async fn measurement_history(&self) -> Result<Vec<Measurement>, Error>
returns the entire history of
Measurements since the device booted. This includes
successful and erroneous measurements. The list may be empty if the device just booted and
has not performed any measurements yet.Source§async fn system_status(&self) -> Result<SystemStatus, Error>
async fn system_status(&self) -> Result<SystemStatus, Error>
returns the device’s current system status Read more
Auto Trait Implementations§
impl Freeze for NetworkConnectedDevice
impl RefUnwindSafe for NetworkConnectedDevice
impl Send for NetworkConnectedDevice
impl Sync for NetworkConnectedDevice
impl Unpin for NetworkConnectedDevice
impl UnwindSafe for NetworkConnectedDevice
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