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