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§
Sourcefn read_next(&mut self) -> Result<Option<WalEvent>, WalReaderError>
fn read_next(&mut self) -> Result<Option<WalEvent>, WalReaderError>
Read the next event from the WAL.
Sourcefn seek_to_sequence(&mut self, sequence: u64) -> Result<(), WalReaderError>
fn seek_to_sequence(&mut self, sequence: u64) -> Result<(), WalReaderError>
Seek to a specific sequence number.