pub enum TargetSelectionReason {
NoEligibleTarget,
Acquired,
RetainedBest,
RetainedByHysteresis,
SwitchMarginExceeded,
SwitchedToVisible,
PreviousIneligible,
}Expand description
Why an opt-in TargetSelector selected or released its target.
Variants§
NoEligibleTarget
No eligible, finite-scored target was evaluated. See incomplete too.
Acquired
There was no previous target; the best evaluated target was acquired.
RetainedBest
The previous target is still the best evaluated target.
RetainedByHysteresis
A challenger did not exceed the previous target’s score by the margin.
SwitchMarginExceeded
A challenger’s score exceeded the previous target’s score by the margin.
SwitchedToVisible
Fresh sight outranks a remembered target, regardless of score margin.
PreviousIneligible
The previous target was not eligible in the evaluated set.
Trait Implementations§
Source§impl Clone for TargetSelectionReason
impl Clone for TargetSelectionReason
Source§fn clone(&self) -> TargetSelectionReason
fn clone(&self) -> TargetSelectionReason
Returns a duplicate of the value. Read more
1.0.0 · 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 TargetSelectionReason
impl Debug for TargetSelectionReason
Source§impl PartialEq for TargetSelectionReason
impl PartialEq for TargetSelectionReason
impl Copy for TargetSelectionReason
impl Eq for TargetSelectionReason
impl StructuralPartialEq for TargetSelectionReason
Auto Trait Implementations§
impl Freeze for TargetSelectionReason
impl RefUnwindSafe for TargetSelectionReason
impl Send for TargetSelectionReason
impl Sync for TargetSelectionReason
impl Unpin for TargetSelectionReason
impl UnwindSafe for TargetSelectionReason
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