pub enum DataStatus {
Ready,
NotReady,
}Expand description
Describes whether a new measurement is ready to be read from the sensor.
Variants§
Trait Implementations§
Source§impl Debug for DataStatus
impl Debug for DataStatus
Source§impl PartialEq for DataStatus
impl PartialEq for DataStatus
Source§impl TryFrom<&[u8]> for DataStatus
impl TryFrom<&[u8]> for DataStatus
Source§fn try_from(data: &[u8]) -> Result<Self, Self::Error>
fn try_from(data: &[u8]) -> Result<Self, Self::Error>
Converts buffered data to an DataStatus value.
§Errors
- ReceivedBufferWrongSize if the
databuffer is not big enough for the data that should have been received. - CrcFailed if the CRC of the received data does not match.
- UnexpectedValueReceived if the
received value is not
0or1.
impl StructuralPartialEq for DataStatus
Auto Trait Implementations§
impl Freeze for DataStatus
impl RefUnwindSafe for DataStatus
impl Send for DataStatus
impl Sync for DataStatus
impl Unpin for DataStatus
impl UnwindSafe for DataStatus
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