pub struct TracingSyncObserver;Expand description
Default observer that logs events using the tracing crate.
Trait Implementations§
Source§impl SyncObserver for TracingSyncObserver
impl SyncObserver for TracingSyncObserver
Source§fn on_sync_start(&self)
fn on_sync_start(&self)
Called when the sync operation starts.
Source§fn on_source_start(&self, source_name: &str)
fn on_source_start(&self, source_name: &str)
Called when a specific source starts syncing.
Source§fn on_source_success(&self, source_name: &str, count: usize)
fn on_source_success(&self, source_name: &str, count: usize)
Called when a source successfully syncs.
Source§fn on_source_error(&self, source_name: &str, error: &AdvisoryError)
fn on_source_error(&self, source_name: &str, error: &AdvisoryError)
Called when a source fails to sync.
Source§fn on_sync_complete(&self, _stats: &SyncStats)
fn on_sync_complete(&self, _stats: &SyncStats)
Called when the sync operation completes.
Auto Trait Implementations§
impl Freeze for TracingSyncObserver
impl RefUnwindSafe for TracingSyncObserver
impl Send for TracingSyncObserver
impl Sync for TracingSyncObserver
impl Unpin for TracingSyncObserver
impl UnwindSafe for TracingSyncObserver
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