Struct led_box_comms::DeviceState
source · pub struct DeviceState {
pub ch1: ChannelState,
pub ch2: ChannelState,
pub ch3: ChannelState,
pub ch4: ChannelState,
}
Fields§
§ch1: ChannelState
§ch2: ChannelState
§ch3: ChannelState
§ch4: ChannelState
Implementations§
source§impl DeviceState
impl DeviceState
pub const fn default() -> DeviceState
Trait Implementations§
source§impl Clone for DeviceState
impl Clone for DeviceState
source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
Returns a copy 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 DeviceState
impl Debug for DeviceState
source§impl Default for DeviceState
impl Default for DeviceState
source§fn default() -> DeviceState
fn default() -> DeviceState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceState
impl<'de> Deserialize<'de> for DeviceState
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 DeviceState
impl PartialEq for DeviceState
source§fn eq(&self, other: &DeviceState) -> bool
fn eq(&self, other: &DeviceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DeviceState
impl Serialize for DeviceState
impl Copy for DeviceState
impl StructuralPartialEq for DeviceState
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnwindSafe for DeviceState
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