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
sourceimpl Clone for SensorInfo
impl Clone for SensorInfo
sourcefn clone(&self) -> SensorInfo
fn clone(&self) -> SensorInfo
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 SensorInfo
impl Debug for SensorInfo
sourceimpl Default for SensorInfo
impl Default for SensorInfo
sourcefn default() -> SensorInfo
fn default() -> SensorInfo
Returns the “default value” for a type. Read more
sourceimpl FromByteSlice for SensorInfo
impl FromByteSlice for SensorInfo
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]) -> SensorInfo
fn from_le_bytes(bytes: &[u8]) -> SensorInfo
Deserialize the implementing type from a byte slice.
sourceimpl Hash for SensorInfo
impl Hash for SensorInfo
sourceimpl PartialEq<SensorInfo> for SensorInfo
impl PartialEq<SensorInfo> for SensorInfo
sourcefn eq(&self, other: &SensorInfo) -> bool
fn eq(&self, other: &SensorInfo) -> bool
impl Copy for SensorInfo
impl Eq for SensorInfo
impl StructuralEq for SensorInfo
impl StructuralPartialEq for SensorInfo
Auto Trait Implementations
impl RefUnwindSafe for SensorInfo
impl Send for SensorInfo
impl Sync for SensorInfo
impl Unpin for SensorInfo
impl UnwindSafe for SensorInfo
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