Skip to main content

WalWriter

Trait WalWriter 

Source
pub trait WalWriter {
    // Required methods
    fn append(&mut self, event: &WalEvent) -> Result<(), WalWriterError>;
    fn flush(&mut self) -> Result<(), WalWriterError>;
    fn close(self) -> Result<(), WalWriterError>;
}
Expand description

A writer that can append events to the WAL.

Required Methods§

Source

fn append(&mut self, event: &WalEvent) -> Result<(), WalWriterError>

Append an event to the WAL.

Source

fn flush(&mut self) -> Result<(), WalWriterError>

Flush pending writes to durable storage.

Source

fn close(self) -> Result<(), WalWriterError>

Close the writer, releasing any resources.

Implementors§