pub enum TreeBodyIntegrity {
VerifiedPlacement,
SequentialVerify,
}Expand description
How a tree body may be trusted for content-address verification.
Sequential reads from offset 0 recompute the typed tree hash. Ranged
resume skips the prefix and is allowed only after the caller has hashed
these exact bytes. A hash-shaped path or an embedded tree id is not that
proof. Object-store backends use Self::SequentialVerify.
Variants§
VerifiedPlacement
Caller hashed these exact bytes; prefix skip is allowed.
SequentialVerify
The reader must start at entry 0 and call finish_and_verify.
Trait Implementations§
Source§impl Clone for TreeBodyIntegrity
impl Clone for TreeBodyIntegrity
Source§fn clone(&self) -> TreeBodyIntegrity
fn clone(&self) -> TreeBodyIntegrity
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 moreimpl Copy for TreeBodyIntegrity
Source§impl Debug for TreeBodyIntegrity
impl Debug for TreeBodyIntegrity
impl Eq for TreeBodyIntegrity
Source§impl PartialEq for TreeBodyIntegrity
impl PartialEq for TreeBodyIntegrity
impl StructuralPartialEq for TreeBodyIntegrity
Auto Trait Implementations§
impl Freeze for TreeBodyIntegrity
impl RefUnwindSafe for TreeBodyIntegrity
impl Send for TreeBodyIntegrity
impl Sync for TreeBodyIntegrity
impl Unpin for TreeBodyIntegrity
impl UnsafeUnpin for TreeBodyIntegrity
impl UnwindSafe for TreeBodyIntegrity
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