pub struct StateChangedEvent {
pub button_l: u8,
pub button_r: u8,
pub led_l: u8,
pub led_r: u8,
}
Fields§
§led_l: u8
§led_r: u8
Trait Implementations§
source§impl Clone for StateChangedEvent
impl Clone for StateChangedEvent
source§fn clone(&self) -> StateChangedEvent
fn clone(&self) -> StateChangedEvent
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 StateChangedEvent
impl Debug for StateChangedEvent
source§impl Default for StateChangedEvent
impl Default for StateChangedEvent
source§fn default() -> StateChangedEvent
fn default() -> StateChangedEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for StateChangedEvent
impl FromByteSlice for StateChangedEvent
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> StateChangedEvent
fn from_le_byte_slice(bytes: &[u8]) -> StateChangedEvent
Deserialize the implementing type from a byte slice.
source§impl Hash for StateChangedEvent
impl Hash for StateChangedEvent
source§impl PartialEq for StateChangedEvent
impl PartialEq for StateChangedEvent
source§fn eq(&self, other: &StateChangedEvent) -> bool
fn eq(&self, other: &StateChangedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StateChangedEvent
impl Eq for StateChangedEvent
impl StructuralPartialEq for StateChangedEvent
Auto Trait Implementations§
impl RefUnwindSafe for StateChangedEvent
impl Send for StateChangedEvent
impl Sync for StateChangedEvent
impl Unpin for StateChangedEvent
impl UnwindSafe for StateChangedEvent
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