pub struct WalReader { /* private fields */ }Expand description
WAL Reader
Implementations§
Source§impl WalReader
impl WalReader
Sourcepub fn read_all(&mut self) -> Result<Vec<WalEntry>>
pub fn read_all(&mut self) -> Result<Vec<WalEntry>>
Read all entries from the WAL Stops at the first corrupted or incomplete entry
Sourcepub fn read_with_validation(
&mut self,
) -> Result<(Vec<WalEntry>, Vec<CorruptionInfo>)>
pub fn read_with_validation( &mut self, ) -> Result<(Vec<WalEntry>, Vec<CorruptionInfo>)>
Read entries and validate them without stopping at corruption Returns both valid entries and information about corrupted regions
Auto Trait Implementations§
impl Freeze for WalReader
impl RefUnwindSafe for WalReader
impl Send for WalReader
impl Sync for WalReader
impl Unpin for WalReader
impl UnsafeUnpin for WalReader
impl UnwindSafe for WalReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more