pub enum ControlSignal {
SchemaRefresh,
AdHocSnapshot {
tables: Vec<String>,
},
}Expand description
Signal from SourceDriver::between_events for side work between polls.
Handled by run_source_runtime via the corresponding on_* hooks before
the next poll. Defaults are no-ops so simple CDC drivers stay thin.
Variants§
SchemaRefresh
Refresh source schema / catalog (DDL observed, etc.).
AdHocSnapshot
Run an ad-hoc snapshot for the named tables (empty = driver-defined).
Trait Implementations§
Source§impl Clone for ControlSignal
impl Clone for ControlSignal
Source§fn clone(&self) -> ControlSignal
fn clone(&self) -> ControlSignal
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 ControlSignal
impl Debug for ControlSignal
impl Eq for ControlSignal
Source§impl PartialEq for ControlSignal
impl PartialEq for ControlSignal
impl StructuralPartialEq for ControlSignal
Auto Trait Implementations§
impl Freeze for ControlSignal
impl RefUnwindSafe for ControlSignal
impl Send for ControlSignal
impl Sync for ControlSignal
impl Unpin for ControlSignal
impl UnsafeUnpin for ControlSignal
impl UnwindSafe for ControlSignal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.