#[non_exhaustive]pub enum AdoptReason {
First,
HigherTrust,
Refined,
Stale,
Step,
Downgrade,
}Expand description
Why an offered sample replaced the anchor.
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.
First
There was no anchor.
HigherTrust
The source is more trusted than the current one.
Refined
Same source, at least as precise.
Stale
Same source, the old anchor was older than the resync period.
Step
Same source, the time disagrees with the prediction by more than both error bars: a clock step.
Downgrade
A less trusted source, allowed because the better one failed.
Implementations§
Trait Implementations§
Source§impl Clone for AdoptReason
impl Clone for AdoptReason
impl Copy for AdoptReason
Source§impl Debug for AdoptReason
impl Debug for AdoptReason
Source§impl Display for AdoptReason
impl Display for AdoptReason
impl Eq for AdoptReason
Source§impl PartialEq for AdoptReason
impl PartialEq for AdoptReason
impl StructuralPartialEq for AdoptReason
Auto Trait Implementations§
impl Forget for AdoptReason
impl Freeze for AdoptReason
impl Move for AdoptReason
impl RefUnwindSafe for AdoptReason
impl Send for AdoptReason
impl Sync for AdoptReason
impl Unpin for AdoptReason
impl UnsafeUnpin for AdoptReason
impl UnwindSafe for AdoptReason
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