pub enum Quality {
Good,
Uncertain,
Bad,
}Expand description
How much a TagValue should be trusted, mirroring OPC’s own three-state quality model
rather than collapsing it to a bool. “Uncertain” (e.g. a value held at its last known
reading during a brief comms hiccup) is a real, actionable distinction from outright bad
quality — not merely a presentation nuance — so callers that need to decide whether to
trust a reading can react to it directly rather than losing the distinction.
Variants§
Implementations§
Source§impl Quality
impl Quality
Sourcepub fn is_trustworthy(self) -> bool
pub fn is_trustworthy(self) -> bool
Whether a value with this quality should be trusted for tuning-critical decisions —
feeding an MRFT tick, or treating an initial-readings snapshot as having actually
succeeded. Only Good counts: MRFT’s peak/trough detection has no way to partially
discount a merely-Uncertain reading the way a human operator glancing at a trend
might, so treating it as untrustworthy is the safe default.
Trait Implementations§
impl Copy for Quality
impl Eq for Quality
impl StructuralPartialEq for Quality
Auto Trait Implementations§
impl Freeze for Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnsafeUnpin for Quality
impl UnwindSafe for Quality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].