Skip to main content

WalReader

Trait WalReader 

Source
pub trait WalReader {
    // Required methods
    fn read_next(&mut self) -> Result<Option<WalEvent>, WalReaderError>;
    fn seek_to_sequence(&mut self, sequence: u64) -> Result<(), WalReaderError>;
    fn is_end(&self) -> bool;
}
Expand description

A reader that can read events from the WAL.

Required Methods§

Source

fn read_next(&mut self) -> Result<Option<WalEvent>, WalReaderError>

Read the next event from the WAL.

Source

fn seek_to_sequence(&mut self, sequence: u64) -> Result<(), WalReaderError>

Seek to a specific sequence number.

Source

fn is_end(&self) -> bool

Returns true if the reader is at the end of the WAL.

Implementors§