#[non_exhaustive]pub enum ObservationStatus {
Valid,
Suspect,
Invalid,
}Expand description
Source-reported validity of a reading.
What the source reports, not a judgement of the value (a GNSS fix the
receiver distrusts, a settling gyro, a stopped log impeller). Handling of
Suspect is the consumer’s decision; Invalid carries no information.
#[non_exhaustive]; match with a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Valid
Valid.
Suspect
Flagged by the source: use with caution or not at all.
Invalid
No usable reading; the value is a placeholder.
Implementations§
Trait Implementations§
Source§impl Clone for ObservationStatus
impl Clone for ObservationStatus
impl Copy for ObservationStatus
Source§impl Debug for ObservationStatus
impl Debug for ObservationStatus
impl Eq for ObservationStatus
Source§impl Hash for ObservationStatus
impl Hash for ObservationStatus
Source§impl PartialEq for ObservationStatus
impl PartialEq for ObservationStatus
impl StructuralPartialEq for ObservationStatus
Auto Trait Implementations§
impl Freeze for ObservationStatus
impl RefUnwindSafe for ObservationStatus
impl Send for ObservationStatus
impl Sync for ObservationStatus
impl Unpin for ObservationStatus
impl UnsafeUnpin for ObservationStatus
impl UnwindSafe for ObservationStatus
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