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