pub enum Reason {
NoModel,
NoEvidence,
NoCandidates,
NoGain,
BelowFloor,
Unsupported,
Pinned,
}Expand description
Why the request was kept.
Variants§
NoModel
The scorer has no weights.
NoEvidence
A score was NaN, or no candidate had enough support.
NoCandidates
There was nothing but keep to choose from.
NoGain
No candidate beat keep by enough.
BelowFloor
No candidate cleared the success floor.
Unsupported
No candidate got through: each one failed validation, cost more than the gate allows, sat under the success floor, or had too little support, and none of the held back ones would have beaten keep.
Pinned
The caller fixed the mode, the pool or the country.
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Forget for Reason
impl Freeze for Reason
impl Move for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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