pub enum ControlDirective {
DisableForeignKeys,
EnableForeignKeys,
SyncSequences,
}Expand description
Control directive for coordinating producer/receiver behavior.
Control directives are sent as special batches to signal the receiver to perform administrative operations like disabling/enabling constraints.
Variants§
DisableForeignKeys
Disable foreign key constraints on the target. The receiver should:
- Query all FK constraints
- Store definitions in _scry_admin.foreign_keys
- Drop all FK constraints
EnableForeignKeys
Enable foreign key constraints on the target. The receiver should:
- Read FK definitions from _scry_admin.foreign_keys
- Recreate all FK constraints
- Clean up the admin table
SyncSequences
Synchronize sequence values. The batch will contain sequence_values with the current state.
Trait Implementations§
Source§impl Clone for ControlDirective
impl Clone for ControlDirective
Source§fn clone(&self) -> ControlDirective
fn clone(&self) -> ControlDirective
Returns a duplicate of the value. Read more
1.0.0 · 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 ControlDirective
impl Debug for ControlDirective
Source§impl<'de> Deserialize<'de> for ControlDirective
impl<'de> Deserialize<'de> for ControlDirective
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 Display for ControlDirective
impl Display for ControlDirective
Source§impl Hash for ControlDirective
impl Hash for ControlDirective
Source§impl PartialEq for ControlDirective
impl PartialEq for ControlDirective
Source§impl Serialize for ControlDirective
impl Serialize for ControlDirective
impl Copy for ControlDirective
impl Eq for ControlDirective
impl StructuralPartialEq for ControlDirective
Auto Trait Implementations§
impl Freeze for ControlDirective
impl RefUnwindSafe for ControlDirective
impl Send for ControlDirective
impl Sync for ControlDirective
impl Unpin for ControlDirective
impl UnsafeUnpin for ControlDirective
impl UnwindSafe for ControlDirective
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