pub struct NoopObserver;Expand description
The default Observer: every event is dropped. Used when an engine is run
without with_observer.
Trait Implementations§
Source§impl Clone for NoopObserver
impl Clone for NoopObserver
Source§fn clone(&self) -> NoopObserver
fn clone(&self) -> NoopObserver
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 moreimpl Copy for NoopObserver
Source§impl Debug for NoopObserver
impl Debug for NoopObserver
Source§impl Default for NoopObserver
impl Default for NoopObserver
Source§fn default() -> NoopObserver
fn default() -> NoopObserver
Returns the “default value” for a type. Read more
Source§impl Observer for NoopObserver
impl Observer for NoopObserver
Source§fn on_indexes_ensured(&self, count: usize)
fn on_indexes_ensured(&self, count: usize)
The target indexes have been ensured at the sink (
count of them),
before any documents flow.Source§fn on_backfill_started(&self, indexes: &[IndexName])
fn on_backfill_started(&self, indexes: &[IndexName])
Backfill is starting for
indexes (those the sink reported unseeded).Source§fn on_index_seeded(&self, index: &IndexName)
fn on_index_seeded(&self, index: &IndexName)
index’s backfill is complete and it has been marked seeded.Source§fn on_backfill_completed(&self)
fn on_backfill_completed(&self)
The backfill phase finished (all unseeded indexes seeded), or was skipped.
Source§fn on_live_started(&self)
fn on_live_started(&self)
Live capture has started; the pipeline is now following ongoing changes.
Source§fn on_change_captured(&self)
fn on_change_captured(&self)
One change was pulled from the source into the queue.
Source§fn on_batch_committed(&self, stats: BatchStats)
fn on_batch_committed(&self, stats: BatchStats)
A batch was built, flushed, and acked. See
BatchStats.Source§fn on_slot_lag(&self, bytes: u64)
fn on_slot_lag(&self, bytes: u64)
The source’s capture lag, in bytes behind the latest position — e.g. a
replication slot’s distance from the server’s current WAL. Reported by
whoever polls
ChangeCapture::lag,
not by the engine loop itself.Source§fn on_document_quarantined(&self, index: &str, id: &str, reason: &str)
fn on_document_quarantined(&self, index: &str, id: &str, reason: &str)
A document was quarantined: the sink rejected it at the item level
and the engine’s failure policy is to skip and continue (see
FailurePolicy::Skip). The document is not
applied and the batch proceeds, so it is not redelivered — this is the
signal to surface it (a metric, a log, a dead-letter record). index and
id are the destination’s names for it; reason is why it was rejected.Auto Trait Implementations§
impl Freeze for NoopObserver
impl RefUnwindSafe for NoopObserver
impl Send for NoopObserver
impl Sync for NoopObserver
impl Unpin for NoopObserver
impl UnsafeUnpin for NoopObserver
impl UnwindSafe for NoopObserver
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