pub trait Progress: Send + Sync {
// Provided methods
fn step(&self, _message: &str) { ... }
fn copy_started(&self, _table: &str) { ... }
fn copy_done(
&self,
_table: &str,
_rows: u64,
_bytes: u64,
_elapsed: Duration,
) { ... }
fn streaming(&self, _from: Lsn) { ... }
fn txn(&self, _summary: &TxnSummary) { ... }
fn skipped(&self, _xid: u32, _end_lsn: Lsn) { ... }
fn wants_keys(&self) -> bool { ... }
}Provided Methods§
Sourcefn copy_started(&self, _table: &str)
fn copy_started(&self, _table: &str)
A table copy started.
Sourcefn copy_done(&self, _table: &str, _rows: u64, _bytes: u64, _elapsed: Duration)
fn copy_done(&self, _table: &str, _rows: u64, _bytes: u64, _elapsed: Duration)
A table copy finished.
Sourcefn txn(&self, _summary: &TxnSummary)
fn txn(&self, _summary: &TxnSummary)
A transaction was committed on the target.
Sourcefn wants_keys(&self) -> bool
fn wants_keys(&self) -> bool
Whether key samples should be collected (costs allocations per row).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".