pub struct Miflora { /* private fields */ }Implementations§
Source§impl Miflora
impl Miflora
pub async fn try_from_adapter( adapter: &Adapter, address: Address, ) -> Result<Self, Error>
pub async fn try_from_device(device: Device) -> Result<Self, Error>
pub async fn is_connected(&self) -> Result<bool, Error>
pub async fn connect(&self) -> Result<(), Error>
pub async fn try_connect(&self, retry: u8) -> Result<(), Error>
pub async fn disconnect(&self) -> Result<(), Error>
pub async fn try_disconnect(&self, retry: u8) -> Result<(), Error>
pub async fn read_system(&self) -> Result<System, Error>
pub async fn read_realtime_values(&self) -> Result<RealtimeEntry, Error>
pub async fn read_epoch_time(&self) -> Result<u64, Error>
pub async fn read_historical_values( &self, ) -> Result<Vec<HistoricalEntry>, Error>
pub async fn clear_historical_entries(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Miflora
impl !RefUnwindSafe for Miflora
impl Send for Miflora
impl Sync for Miflora
impl Unpin for Miflora
impl !UnwindSafe for Miflora
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