pub enum Judgement {
Established,
NotEstablished {
reason: String,
},
NotAsked,
Unobservable {
reason: String,
},
}Expand description
One question’s judgement — the four-pole core every tool verdict maps onto (RFC 13, v1.24; RFC 09 §5.1 pre-v1.24). See the module doc.
Variants§
Established
Established(yes): the question was put and the claim holds — positive evidence, conclusive.
NotEstablished
Established(no): the question was put and the claim conclusively does not hold — with the reason, which is where the honesty lives.
NotAsked
Unestablished: the question was not put — the input was not fetched, was not requested, or does not exist for this subject. Not asked is not answered no (RFC 09 §5.1 O4).
Unobservable
Unestablished: the question was put and the observation cannot carry the claim — a drop under a completeness claim, a window shorter than the claim’s span, or an ask that failed (RFC 09 §5.1 O6).
Implementations§
Source§impl Judgement
impl Judgement
Sourcepub fn conclusive(&self) -> Option<bool>
pub fn conclusive(&self) -> Option<bool>
Whether the question reached a conclusive answer: Some(true) =
Established(yes), Some(false) = Established(no), None = neither
pole of Unestablished says anything.
Sourcepub fn is_unobservable(&self) -> bool
pub fn is_unobservable(&self) -> bool
The observation was made and could not carry the claim.
Sourcepub fn is_not_asked(&self) -> bool
pub fn is_not_asked(&self) -> bool
The question was never put.
Trait Implementations§
impl Eq for Judgement
Source§impl From<&Judgement> for CondState
The documented wire projection (RFC 13, v1.24): Established → firing,
NotEstablished → ok (the polarity note on CondState), both
unestablished poles → unobservable.
impl From<&Judgement> for CondState
The documented wire projection (RFC 13, v1.24): Established → firing,
NotEstablished → ok (the polarity note on CondState), both
unestablished poles → unobservable.
Source§impl From<Judgement> for CutoverVerdict
The inverse of CutoverVerdict::to_judgement. Both unestablished poles
fold to Unproven: a question that was not put (or could not be carried)
proves no migration.
impl From<Judgement> for CutoverVerdict
The inverse of CutoverVerdict::to_judgement. Both unestablished poles
fold to Unproven: a question that was not put (or could not be carried)
proves no migration.
Source§fn from(j: Judgement) -> CutoverVerdict
fn from(j: Judgement) -> CutoverVerdict
Source§impl From<Judgement> for ExpectVerdict
The inverse of ExpectVerdict::to_judgement — what lets expect fold
a judge’s answer straight into its verdict without hand-mapping. Both
unestablished poles are Impaired: an assertion that was not (or could
not be) observed is not met and not violated.
impl From<Judgement> for ExpectVerdict
The inverse of ExpectVerdict::to_judgement — what lets expect fold
a judge’s answer straight into its verdict without hand-mapping. Both
unestablished poles are Impaired: an assertion that was not (or could
not be) observed is not met and not violated.
Source§fn from(j: Judgement) -> ExpectVerdict
fn from(j: Judgement) -> ExpectVerdict
Source§impl From<Judgement> for WhyVerdict
The inverse of WhyVerdict::to_judgement, same (inverted) polarity:
an established finding is Explained, established-clean is Healthy,
and both unestablished poles fold to Impaired — a ladder nobody asked
is exactly a ladder that cannot claim health.
impl From<Judgement> for WhyVerdict
The inverse of WhyVerdict::to_judgement, same (inverted) polarity:
an established finding is Explained, established-clean is Healthy,
and both unestablished poles fold to Impaired — a ladder nobody asked
is exactly a ladder that cannot claim health.
Source§fn from(j: Judgement) -> WhyVerdict
fn from(j: Judgement) -> WhyVerdict
impl StructuralPartialEq for Judgement
Auto Trait Implementations§
impl Freeze for Judgement
impl RefUnwindSafe for Judgement
impl Send for Judgement
impl Sync for Judgement
impl Unpin for Judgement
impl UnsafeUnpin for Judgement
impl UnwindSafe for Judgement
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more