pub enum WALRecord<W>where
W: WalTypes,{
Action(<W as WalTypes>::Action),
Checkpoint(<W as WalTypes>::Checkpoint),
}Expand description
Generic record stored in the Write-Ahead Log (WAL).
The WAL only distinguishes user actions from state-machine checkpoints. The concrete action and checkpoint payloads are defined by the user of the WAL.
Variants§
Action(<W as WalTypes>::Action)
A user-defined command.
Checkpoint(<W as WalTypes>::Checkpoint)
A state-machine checkpoint persisted by the WAL.
Trait Implementations§
Source§impl<W> Decode for WALRecord<W>where
W: WalTypes,
Implements decoding for WALRecord.
impl<W> Decode for WALRecord<W>where
W: WalTypes,
Implements decoding for WALRecord.
The wrapper inspects the record type and replays it for the decoder. Checkpoint records reread the reserved checkpoint type so v1 checksum verification still covers the type and payload.
Source§impl<W> Encode for WALRecord<W>where
W: WalTypes,
impl<W> Encode for WALRecord<W>where
W: WalTypes,
Source§impl<W> PartialEq for WALRecord<W>
impl<W> PartialEq for WALRecord<W>
impl<W> Eq for WALRecord<W>
impl<W> StructuralPartialEq for WALRecord<W>where
W: WalTypes,
Auto Trait Implementations§
impl<W> Freeze for WALRecord<W>
impl<W> RefUnwindSafe for WALRecord<W>
impl<W> Send for WALRecord<W>
impl<W> Sync for WALRecord<W>
impl<W> Unpin for WALRecord<W>
impl<W> UnsafeUnpin for WALRecord<W>
impl<W> UnwindSafe for WALRecord<W>
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