#[non_exhaustive]pub enum Selection<P> {
Current(P),
Committed,
NotCommitted,
}Expand description
What an observer may report about a candidate it does not drive.
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.
Current(P)
A fresh probe proved the candidate is serving.
Committed
The selection names the candidate, but no fresh probe proved it within
Budget::proof. The candidate is authoritative: do not roll back,
restart or select anything around it.
NotCommitted
Budget::commit passed without the selection naming the candidate.
Trait Implementations§
impl<P: Eq> Eq for Selection<P>
impl<P: PartialEq> StructuralPartialEq for Selection<P>
Auto Trait Implementations§
impl<P> Freeze for Selection<P>where
P: Freeze,
impl<P> RefUnwindSafe for Selection<P>where
P: RefUnwindSafe,
impl<P> Send for Selection<P>where
P: Send,
impl<P> Sync for Selection<P>where
P: Sync,
impl<P> Unpin for Selection<P>where
P: Unpin,
impl<P> UnsafeUnpin for Selection<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Selection<P>where
P: UnwindSafe,
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