Enum StopCause
#[non_exhaustive]pub enum StopCause {
Failure(Failure),
Incarnation(IncarnationChanged),
RetentionGap(RetentionGap),
}Expand description
Why an edge stopped.
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.
Failure(Failure)
A failure of class Stop: authorisation or
configuration. Or of class Reseed stated by
the local store or the edge’s rule, which is no retention gap: only
the far side can have forgotten history.
Incarnation(IncarnationChanged)
The far side answered as a different store incarnation.
RetentionGap(RetentionGap)
The far side can no longer resume this edge’s token: it has forgotten history the token has not reached (SY-32).
Implementations§
Trait Implementations§
impl Copy for StopCause
impl Eq for StopCause
impl StructuralPartialEq for StopCause
Auto Trait Implementations§
impl Freeze for StopCause
impl RefUnwindSafe for StopCause
impl Send for StopCause
impl Sync for StopCause
impl Unpin for StopCause
impl UnsafeUnpin for StopCause
impl UnwindSafe for StopCause
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