#[non_exhaustive]pub enum ClassificationError {
RootFailed {
hns: RootResolutionState,
icann: RootResolutionState,
},
RootPositionMismatch {
expected: Namespace,
actual: Namespace,
},
QueryMismatch {
namespace: Namespace,
},
StaleEvidence {
namespace: Namespace,
},
SelectedNamespaceUnavailable {
namespace: Namespace,
selection_reason: SelectionReason,
},
DivergenceRequiresSelection,
}Expand description
Fail-closed classification failure.
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.
RootFailed
One or both root lookups failed. A nonfailed root’s successful disposition is retained without its validated plan or absence proof.
Fields
§
hns: RootResolutionStateBounded HNS lookup state.
§
icann: RootResolutionStateBounded ICANN lookup state.
RootPositionMismatch
Evidence was supplied in the wrong root position.
Fields
QueryMismatch
Evidence belongs to another scheme, hostname, port, or protocol capability set.
StaleEvidence
Presence or authenticated-absence evidence is outside its validity interval.
A pin or persistent binding names a root that is authentically absent. Callers must perform an explicit state-isolated namespace switch rather than silently selecting the other root.
DivergenceRequiresSelection
Both roots differ and policy requires an explicit selection.
Trait Implementations§
Source§impl Clone for ClassificationError
impl Clone for ClassificationError
Source§fn clone(&self) -> ClassificationError
fn clone(&self) -> ClassificationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClassificationError
impl Debug for ClassificationError
Source§impl Display for ClassificationError
impl Display for ClassificationError
impl Eq for ClassificationError
Source§impl Error for ClassificationError
impl Error for ClassificationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ClassificationError
impl PartialEq for ClassificationError
impl StructuralPartialEq for ClassificationError
Auto Trait Implementations§
impl Freeze for ClassificationError
impl RefUnwindSafe for ClassificationError
impl Send for ClassificationError
impl Sync for ClassificationError
impl Unpin for ClassificationError
impl UnsafeUnpin for ClassificationError
impl UnwindSafe for ClassificationError
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