pub struct RootPointer {
pub generation: u64,
pub superblock_ref: ObjectRef,
pub checksum: [u8; 32],
}Expand description
Stored in block 1 (A) and block 2 (B). Points to the current superblock. We alternate between A and B to get atomic commits.
Fields§
§generation: u64Monotonic generation counter. Higher = newer.
superblock_ref: ObjectRefBlock ID of the current superblock object.
checksum: [u8; 32]BLAKE3 checksum of the serialized superblock for integrity.
Trait Implementations§
Source§impl Clone for RootPointer
impl Clone for RootPointer
Source§fn clone(&self) -> RootPointer
fn clone(&self) -> RootPointer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RootPointer
impl Debug for RootPointer
Source§impl<'de> Deserialize<'de> for RootPointer
impl<'de> Deserialize<'de> for RootPointer
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 RootPointer
impl RefUnwindSafe for RootPointer
impl Send for RootPointer
impl Sync for RootPointer
impl Unpin for RootPointer
impl UnsafeUnpin for RootPointer
impl UnwindSafe for RootPointer
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