pub struct T100Handler { /* private fields */ }Expand description
Handler for the T100 devices.
Implementations§
Source§impl T100Handler
impl T100Handler
Sourcepub async fn get_device_info(&self) -> Result<T100Result, Error>
pub async fn get_device_info(&self) -> Result<T100Result, Error>
Returns device info as T100Result.
It is not guaranteed to contain all the properties returned from the Tapo API.
Sourcepub async fn get_device_info_json(&self) -> Result<Value, Error>
pub async fn get_device_info_json(&self) -> Result<Value, Error>
Returns device info as serde_json::Value.
It contains all the properties returned from the Tapo API.
Sourcepub async fn get_trigger_logs(
&self,
page_size: u64,
start_id: u64,
) -> Result<TriggerLogsResult<T100Log>, Error>
pub async fn get_trigger_logs( &self, page_size: u64, start_id: u64, ) -> Result<TriggerLogsResult<T100Log>, Error>
Returns a list of trigger logs.
§Arguments
page_size- the maximum number of log items to returnstart_id- the log itemidfrom which to start returning results in reverse chronological order (newest first)
Use a start_id of 0 to get the most recent X logs, where X is capped by page_size.
Auto Trait Implementations§
impl Freeze for T100Handler
impl !RefUnwindSafe for T100Handler
impl Send for T100Handler
impl Sync for T100Handler
impl Unpin for T100Handler
impl UnsafeUnpin for T100Handler
impl !UnwindSafe for T100Handler
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