pub struct ValueEvent {
pub channel: u8,
pub changed: bool,
pub value: bool,
}
Fields§
§channel: u8
§changed: bool
§value: bool
Trait Implementations§
source§impl Clone for ValueEvent
impl Clone for ValueEvent
source§fn clone(&self) -> ValueEvent
fn clone(&self) -> ValueEvent
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 ValueEvent
impl Debug for ValueEvent
source§impl Default for ValueEvent
impl Default for ValueEvent
source§fn default() -> ValueEvent
fn default() -> ValueEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for ValueEvent
impl FromByteSlice for ValueEvent
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]) -> ValueEvent
fn from_le_byte_slice(bytes: &[u8]) -> ValueEvent
Deserialize the implementing type from a byte slice.
source§impl Hash for ValueEvent
impl Hash for ValueEvent
source§impl PartialEq for ValueEvent
impl PartialEq for ValueEvent
source§fn eq(&self, other: &ValueEvent) -> bool
fn eq(&self, other: &ValueEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ValueEvent
impl Eq for ValueEvent
impl StructuralPartialEq for ValueEvent
Auto Trait Implementations§
impl RefUnwindSafe for ValueEvent
impl Send for ValueEvent
impl Sync for ValueEvent
impl Unpin for ValueEvent
impl UnwindSafe for ValueEvent
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