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