#[non_exhaustive]pub enum Probe {
#[non_exhaustive] Identified {
format: Format,
confidence: Confidence,
detail: Detail,
},
#[non_exhaustive] Ambiguous {
candidates: Vec<Candidate>,
},
#[non_exhaustive] Insufficient {
need_at_least: usize,
},
Unknown,
}Expand description
What the probe concluded.
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.
#[non_exhaustive]Identified
A single best match.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
confidence: ConfidenceIts evidence strength.
#[non_exhaustive]Ambiguous
Two or more candidates within TIE_THRESHOLD, ordered by descending
confidence. A caller that wants a decision takes the first; a caller
that wants correctness refuses.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Insufficient
Nothing matched, but a longer buffer could change that.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Unknown
Nothing matched and more bytes will not help.
Implementations§
Source§impl Probe
impl Probe
Sourcepub fn best_confidence(&self) -> Option<Confidence>
pub fn best_confidence(&self) -> Option<Confidence>
The Confidence of the winning candidate, if any — a convenience for
the common Identified / Ambiguous first-wins read.
Returns None for Insufficient/Unknown.
Trait Implementations§
impl Eq for Probe
impl StructuralPartialEq for Probe
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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