pub enum FromDevice {
DeviceState(DeviceState),
EchoResponse8((u8, u8, u8, u8, u8, u8, u8, u8)),
VersionResponse(u16),
StateWasSet,
}Expand description
Messages received from the LED box device.
Variants§
DeviceState(DeviceState)
Current device state.
EchoResponse8((u8, u8, u8, u8, u8, u8, u8, u8))
Echo response with 8 bytes.
VersionResponse(u16)
Firmware version response.
StateWasSet
Confirmation that state was set.
Trait Implementations§
Source§impl Clone for FromDevice
impl Clone for FromDevice
Source§fn clone(&self) -> FromDevice
fn clone(&self) -> FromDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FromDevice
impl Debug for FromDevice
Source§impl<'de> Deserialize<'de> for FromDevice
impl<'de> Deserialize<'de> for FromDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FromDevice
impl PartialEq for FromDevice
Source§impl Serialize for FromDevice
impl Serialize for FromDevice
impl Copy for FromDevice
impl StructuralPartialEq for FromDevice
Auto Trait Implementations§
impl Freeze for FromDevice
impl RefUnwindSafe for FromDevice
impl Send for FromDevice
impl Sync for FromDevice
impl Unpin for FromDevice
impl UnsafeUnpin for FromDevice
impl UnwindSafe for FromDevice
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