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
sourceimpl Clone for StationDataEvent
impl Clone for StationDataEvent
sourcefn clone(&self) -> StationDataEvent
fn clone(&self) -> StationDataEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StationDataEvent
impl Debug for StationDataEvent
sourceimpl Default for StationDataEvent
impl Default for StationDataEvent
sourcefn default() -> StationDataEvent
fn default() -> StationDataEvent
Returns the “default value” for a type. Read more
sourceimpl FromByteSlice for StationDataEvent
impl FromByteSlice for StationDataEvent
sourcefn 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.
sourcefn from_le_bytes(bytes: &[u8]) -> StationDataEvent
fn from_le_bytes(bytes: &[u8]) -> StationDataEvent
Deserialize the implementing type from a byte slice.
sourceimpl Hash for StationDataEvent
impl Hash for StationDataEvent
sourceimpl PartialEq<StationDataEvent> for StationDataEvent
impl PartialEq<StationDataEvent> for StationDataEvent
sourcefn eq(&self, other: &StationDataEvent) -> bool
fn eq(&self, other: &StationDataEvent) -> bool
impl Copy for StationDataEvent
impl Eq for StationDataEvent
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more