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