pub struct VerifiedLog {
pub records: Vec<(u64, WalRecord)>,
pub links: Vec<WalChainLink>,
pub tail: u64,
}Expand description
read_verified 的产出:逐行记录(1-based 行号)+ 完整性链尾值。
Fields§
§records: Vec<(u64, WalRecord)>逐行记录,Vec 下标 i 的行号 = i + 1。
links: Vec<WalChainLink>逐行完整性链节(与 records 一一对应);审计展示用——让人能看见每一行的
prev → 本行链值,而不是只给一个无法核对的链尾。读侧各链节独立重算,
不是照抄落盘行。
tail: u64最后一条记录的链值;空日志为创世值 0。实时侧(Wal::chain_tail)与
回放侧各算一份,两边相等是审计对账的证据之一。
Trait Implementations§
Source§impl Clone for VerifiedLog
impl Clone for VerifiedLog
Source§fn clone(&self) -> VerifiedLog
fn clone(&self) -> VerifiedLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VerifiedLog
impl Debug for VerifiedLog
impl Eq for VerifiedLog
Source§impl PartialEq for VerifiedLog
impl PartialEq for VerifiedLog
impl StructuralPartialEq for VerifiedLog
Auto Trait Implementations§
impl Freeze for VerifiedLog
impl RefUnwindSafe for VerifiedLog
impl Send for VerifiedLog
impl Sync for VerifiedLog
impl Unpin for VerifiedLog
impl UnsafeUnpin for VerifiedLog
impl UnwindSafe for VerifiedLog
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