pub struct KE100Handler { /* private fields */ }Expand description
Handler for the KE100 devices.
Implementations§
Source§impl KE100Handler
impl KE100Handler
Sourcepub async fn get_device_info(&self) -> Result<KE100Result, Error>
pub async fn get_device_info(&self) -> Result<KE100Result, Error>
Returns device info as KE100Result.
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 [KE100Handler::get_device_info_json].
Source§impl KE100Handler
impl KE100Handler
Sourcepub async fn set_max_control_temperature(
&self,
value: u8,
unit: TemperatureUnitKE100,
) -> Result<(), Error>
pub async fn set_max_control_temperature( &self, value: u8, unit: TemperatureUnitKE100, ) -> Result<(), Error>
Sourcepub async fn set_min_control_temperature(
&self,
value: u8,
unit: TemperatureUnitKE100,
) -> Result<(), Error>
pub async fn set_min_control_temperature( &self, value: u8, unit: TemperatureUnitKE100, ) -> Result<(), Error>
Sourcepub async fn set_target_temperature(
&self,
value: u8,
unit: TemperatureUnitKE100,
) -> Result<(), Error>
pub async fn set_target_temperature( &self, value: u8, unit: TemperatureUnitKE100, ) -> Result<(), Error>
Sets the target temperature.
§Arguments
value- betweenmin_control_temperatureandmax_control_temperatureunit
Sourcepub async fn set_temperature_offset(
&self,
value: i8,
unit: TemperatureUnitKE100,
) -> Result<(), Error>
pub async fn set_temperature_offset( &self, value: i8, unit: TemperatureUnitKE100, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for KE100Handler
impl !RefUnwindSafe for KE100Handler
impl Send for KE100Handler
impl Sync for KE100Handler
impl Unpin for KE100Handler
impl UnsafeUnpin for KE100Handler
impl !UnwindSafe for KE100Handler
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