pub enum RoutingPhase {
Stable,
Migrating,
RollbackWindow,
}Expand description
Phase of the migration lifecycle for routing decisions.
Distinguishes between normal operation, active migration, and the post-cutover rollback window where dual-writing continues to enable safe rollback without data loss.
Variants§
Stable
Normal operation, no migration active.
Migrating
Active migration in progress.
RollbackWindow
Post-cutover rollback window (still dual-writing).
During this phase, queries use the target model but writes go to both models. This enables instant rollback without losing atoms created after cutover.
Trait Implementations§
Source§impl Clone for RoutingPhase
impl Clone for RoutingPhase
Source§fn clone(&self) -> RoutingPhase
fn clone(&self) -> RoutingPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoutingPhase
impl Debug for RoutingPhase
Source§impl<'de> Deserialize<'de> for RoutingPhase
impl<'de> Deserialize<'de> for RoutingPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RoutingPhase
impl PartialEq for RoutingPhase
Source§fn eq(&self, other: &RoutingPhase) -> bool
fn eq(&self, other: &RoutingPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RoutingPhase
impl Serialize for RoutingPhase
impl Copy for RoutingPhase
impl Eq for RoutingPhase
impl StructuralPartialEq for RoutingPhase
Auto Trait Implementations§
impl Freeze for RoutingPhase
impl RefUnwindSafe for RoutingPhase
impl Send for RoutingPhase
impl Sync for RoutingPhase
impl Unpin for RoutingPhase
impl UnsafeUnpin for RoutingPhase
impl UnwindSafe for RoutingPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.