pub enum DataStatus {
Ready,
NotReady,
}
Expand description
Information whether a measurement is ready or not for readout.
Variants§
Trait Implementations§
Source§impl Clone for DataStatus
impl Clone for DataStatus
Source§fn clone(&self) -> DataStatus
fn clone(&self) -> DataStatus
Returns a duplicate 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 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
data
buffer 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
0
or1
.
impl Copy for DataStatus
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