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