Skip to main content

WalLike

Trait WalLike 

Source
pub trait WalLike: Send + Sync {
    // Required method
    fn flush_to_disk(&self) -> Result<()>;
}
Expand description

A durable flush target that many commits can share.

For the WAL this maps to wal.flush_to_disk(), i.e. one fsync.

Required Methods§

Source

fn flush_to_disk(&self) -> Result<()>

Durably persist all records appended to the target so far.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl WalLike for Mutex<WAL>

Implementors§