#[non_exhaustive]pub enum CutoverPhase {
Copying,
Switched,
Completed,
Aborted,
}Expand description
The persisted phase of a cutover.
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.
Copying
Started, not switched. The old root is the authority.
Switched
The switch is durable. The new root is the authority; participants may still have to
reopen (RootCutover::recover).
Completed
Switched and every participant reopened.
Aborted
Failed before the switch. The old root is the authority; a rerun is allowed.
Implementations§
Trait Implementations§
Source§impl Clone for CutoverPhase
impl Clone for CutoverPhase
impl Copy for CutoverPhase
Source§impl Debug for CutoverPhase
impl Debug for CutoverPhase
impl Eq for CutoverPhase
Source§impl PartialEq for CutoverPhase
impl PartialEq for CutoverPhase
impl StructuralPartialEq for CutoverPhase
Auto Trait Implementations§
impl Freeze for CutoverPhase
impl RefUnwindSafe for CutoverPhase
impl Send for CutoverPhase
impl Sync for CutoverPhase
impl Unpin for CutoverPhase
impl UnsafeUnpin for CutoverPhase
impl UnwindSafe for CutoverPhase
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