pub struct S200Handler { /* private fields */ }Implementations§
Source§impl S200Handler
impl S200Handler
Sourcepub async fn get_device_info(&self) -> Result<S200Result, Error>
pub async fn get_device_info(&self) -> Result<S200Result, Error>
Returns device info as S200Result.
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 [S200Handler::get_device_info_json].
Source§impl S200Handler
impl S200Handler
Sourcepub async fn get_trigger_logs(
&self,
page_size: u64,
start_id: u64,
) -> Result<TriggerLogsResult<S200Log>, Error>
pub async fn get_trigger_logs( &self, page_size: u64, start_id: u64, ) -> Result<TriggerLogsResult<S200Log>, 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 S200Handler
impl !RefUnwindSafe for S200Handler
impl Send for S200Handler
impl Sync for S200Handler
impl Unpin for S200Handler
impl UnsafeUnpin for S200Handler
impl !UnwindSafe for S200Handler
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