pub struct WalEntry {
pub seq: u64,
pub timestamp: DateTime<Utc>,
pub kind: WalEntryKind,
pub prev_hash: [u8; 32],
pub hash: [u8; 32],
}Expand description
A single WAL entry representing one mutation.
Fields§
§seq: u64Monotonically increasing sequence number.
timestamp: DateTime<Utc>Wall-clock timestamp (UTC).
kind: WalEntryKindThe mutation kind.
prev_hash: [u8; 32]blake3 hash of the previous entry (chain integrity).
hash: [u8; 32]blake3 hash of this entry’s payload.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WalEntry
impl<'de> Deserialize<'de> for WalEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WalEntry
impl RefUnwindSafe for WalEntry
impl Send for WalEntry
impl Sync for WalEntry
impl Unpin for WalEntry
impl UnsafeUnpin for WalEntry
impl UnwindSafe for WalEntry
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