pub struct SensorInfo {
pub sensor_version: u8,
pub last_error_code: u8,
pub framing_error_count: u8,
pub checksum_error_count: u8,
}
Fields§
§sensor_version: u8
§last_error_code: u8
§framing_error_count: u8
§checksum_error_count: u8
Trait Implementations§
Source§impl Clone for SensorInfo
impl Clone for SensorInfo
Source§fn clone(&self) -> SensorInfo
fn clone(&self) -> SensorInfo
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 SensorInfo
impl Debug for SensorInfo
Source§impl Default for SensorInfo
impl Default for SensorInfo
Source§fn default() -> SensorInfo
fn default() -> SensorInfo
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for SensorInfo
impl FromByteSlice for SensorInfo
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]) -> SensorInfo
fn from_le_byte_slice(bytes: &[u8]) -> SensorInfo
Deserialize the implementing type from a byte slice.
Source§impl Hash for SensorInfo
impl Hash for SensorInfo
Source§impl PartialEq for SensorInfo
impl PartialEq for SensorInfo
impl Copy for SensorInfo
impl Eq for SensorInfo
impl StructuralPartialEq for SensorInfo
Auto Trait Implementations§
impl Freeze for SensorInfo
impl RefUnwindSafe for SensorInfo
impl Send for SensorInfo
impl Sync for SensorInfo
impl Unpin for SensorInfo
impl UnwindSafe for SensorInfo
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