Skip to main content

Progress

Trait Progress 

Source
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§

Source

fn step(&self, _message: &str)

A completed setup step (✓ ...).

Source

fn copy_started(&self, _table: &str)

A table copy started.

Source

fn copy_done(&self, _table: &str, _rows: u64, _bytes: u64, _elapsed: Duration)

A table copy finished.

Source

fn streaming(&self, _from: Lsn)

Streaming started at from.

Source

fn txn(&self, _summary: &TxnSummary)

A transaction was committed on the target.

Source

fn skipped(&self, _xid: u32, _end_lsn: Lsn)

A redelivered transaction was skipped.

Source

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".

Implementors§