Skip to main content

WalSource

Trait WalSource 

Source
pub trait WalSource:
    Send
    + Sync
    + 'static {
    // Required method
    fn durable_wal_position(&self) -> WalPosition;

    // Provided method
    fn catch_up(&self) { ... }
}
Expand description

Where the worker learns how much of the WAL is durable.

SharedDb is the real one. The trait exists so the worker does not care how the handle is held.

Required Methods§

Provided Methods§

Source

fn catch_up(&self)

Absorb whatever another process committed or snapshotted. Called, on a blocking thread, only when the files on disk differ from the position and no snapshot is in progress.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WalSource for SharedDb

Implementors§