pub struct CdcTrigger { /* private fields */ }Expand description
VIL CDC trigger — connects to PostgreSQL logical replication and fires
a TriggerEvent on every DML change in the watched publication.
Implementations§
Trait Implementations§
Source§impl TriggerSource for CdcTrigger
impl TriggerSource for CdcTrigger
Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
Unique, stable identifier for this trigger kind (e.g.
"cdc", "email").Source§fn start<'life0, 'async_trait>(
&'life0 self,
on_event: EventCallback,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
on_event: EventCallback,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start watching for events. Read more
Source§fn pause<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pause<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pause the trigger without destroying source state.
Auto Trait Implementations§
impl Freeze for CdcTrigger
impl RefUnwindSafe for CdcTrigger
impl Send for CdcTrigger
impl Sync for CdcTrigger
impl Unpin for CdcTrigger
impl UnsafeUnpin for CdcTrigger
impl UnwindSafe for CdcTrigger
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