pub enum ClassMatchOutcome {
Matched(ClassMatchEvidence),
NotMatched(ClassMatchEvidence),
InvalidClassGraph {
reason: String,
},
BudgetExhausted {
limit: usize,
performed_work: usize,
},
PolicyFailure {
reason: String,
evidence: ClassMatchEvidence,
},
}Expand description
Exact outcome of bounded handler class selection.
Variants§
Matched(ClassMatchEvidence)
Both subclass evidence and the language predicate accepted the candidate.
NotMatched(ClassMatchEvidence)
Subclass evidence rejected the candidate, or language policy narrowed it.
InvalidClassGraph
The declared parent relation is invalid.
BudgetExhausted
The finite work allowance was exhausted before an answer existed.
PolicyFailure
The caller-supplied language predicate could not decide a positive candidate.
Fields
§
evidence: ClassMatchEvidencePositive subclass evidence presented to the policy.
Trait Implementations§
Source§impl Clone for ClassMatchOutcome
impl Clone for ClassMatchOutcome
Source§fn clone(&self) -> ClassMatchOutcome
fn clone(&self) -> ClassMatchOutcome
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 ClassMatchOutcome
impl Debug for ClassMatchOutcome
impl Eq for ClassMatchOutcome
Source§impl PartialEq for ClassMatchOutcome
impl PartialEq for ClassMatchOutcome
impl StructuralPartialEq for ClassMatchOutcome
Auto Trait Implementations§
impl Freeze for ClassMatchOutcome
impl RefUnwindSafe for ClassMatchOutcome
impl Send for ClassMatchOutcome
impl Sync for ClassMatchOutcome
impl Unpin for ClassMatchOutcome
impl UnsafeUnpin for ClassMatchOutcome
impl UnwindSafe for ClassMatchOutcome
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