Enum wemo::WemoState
[−]
[src]
pub enum WemoState { Off, On, OnWithoutLoad, Unknown(u16), }
Variants
Off
State 0
On
State 1
OnWithoutLoad
A state for the WeMo Insight.
State 8
Unknown(u16)
Unknown state
Methods
impl WemoState
[src]
fn is_on(&self) -> bool
Whether the device is on or off.
fn description(&self) -> &'static str
Returns a textual state useful for printing.
fn from_i64(n: i64) -> Option<WemoState>
fn from_u64(n: u64) -> Option<WemoState>
fn to_i8(&self) -> i8
Trait Implementations
impl Clone for WemoState
[src]
fn clone(&self) -> WemoState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for WemoState
[src]
impl Eq for WemoState
[src]
impl PartialEq for WemoState
[src]
fn eq(&self, __arg_0: &WemoState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WemoState) -> bool
This method tests for !=
.