pub struct T31XHandler { /* private fields */ }Implementations§
Source§impl T31XHandler
impl T31XHandler
Sourcepub async fn get_device_info(&self) -> Result<T31XResult, Error>
pub async fn get_device_info(&self) -> Result<T31XResult, Error>
Returns device info as T31XResult.
It is not guaranteed to contain all the properties returned from the Tapo API.
If the deserialization fails, or if a property that you care about it’s not present, try [T31XHandler::get_device_info_json].
Source§impl T31XHandler
impl T31XHandler
Sourcepub async fn get_temperature_humidity_records(
&self,
) -> Result<TemperatureHumidityRecords, Error>
pub async fn get_temperature_humidity_records( &self, ) -> Result<TemperatureHumidityRecords, Error>
Returns temperature and humidity records from the last 24 hours at 15 minute intervals as TemperatureHumidityRecords.
Auto Trait Implementations§
impl Freeze for T31XHandler
impl !RefUnwindSafe for T31XHandler
impl Send for T31XHandler
impl Sync for T31XHandler
impl Unpin for T31XHandler
impl UnsafeUnpin for T31XHandler
impl !UnwindSafe for T31XHandler
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more