pub struct StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,{ /* private fields */ }Expand description
A log builder which maintains a stack of balanced roots
Implementations§
Source§impl<D, V> StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,
impl<D, V> StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,
Sourcepub fn to_protobuf(self) -> Vec<u8> ⓘ
pub fn to_protobuf(self) -> Vec<u8> ⓘ
Turn a StackLog into bytes using protobuf
Sourcepub fn from_protobuf(bytes: &[u8]) -> Result<Self, Error>
pub fn from_protobuf(bytes: &[u8]) -> Result<Self, Error>
Parse a StackLog from bytes using protobuf
Trait Implementations§
Source§impl<D, V> Default for StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,
impl<D, V> Default for StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,
Source§impl<D, V> From<StackLog<D, V>> for StackLogwhere
D: SupportedDigest,
V: VisitBytes,
impl<D, V> From<StackLog<D, V>> for StackLogwhere
D: SupportedDigest,
V: VisitBytes,
Source§impl<D, V> LogBuilder<D, V> for StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,
impl<D, V> LogBuilder<D, V> for StackLog<D, V>where
D: SupportedDigest,
V: VisitBytes,
Source§fn checkpoint(&self) -> Checkpoint<D>
fn checkpoint(&self) -> Checkpoint<D>
Get the checkpoint (hash and length) of the log at this point.
Auto Trait Implementations§
impl<D, V> Freeze for StackLog<D, V>
impl<D, V> RefUnwindSafe for StackLog<D, V>where
V: RefUnwindSafe,
<<D as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D, V> Send for StackLog<D, V>where
V: Send,
impl<D, V> Sync for StackLog<D, V>where
V: Sync,
impl<D, V> Unpin for StackLog<D, V>
impl<D, V> UnwindSafe for StackLog<D, V>
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