pub struct DirectoryDigest(/* private fields */);Expand description
The digest identity of one observed directory listing.
Implementations§
Source§impl DirectoryDigest
impl DirectoryDigest
Sourcepub fn digest_canonical(canonical_listing: &[u8]) -> Self
pub fn digest_canonical(canonical_listing: &[u8]) -> Self
Hash a canonical directory-listing encoding with a VSH domain separator.
Sourcepub fn digest_entries<'a>(
entries: impl IntoIterator<Item = (&'a VPath, NodeState)>,
) -> Self
pub fn digest_entries<'a>( entries: impl IntoIterator<Item = (&'a VPath, NodeState)>, ) -> Self
Hash path-ordered direct children using VSH’s canonical listing encoding.
Callers must provide entries in canonical VPath order. Keeping this codec in
the shared type crate ensures snapshot capture, virtual reads, and trusted host
revalidation cannot silently diverge.
Trait Implementations§
Source§impl Clone for DirectoryDigest
impl Clone for DirectoryDigest
Source§fn clone(&self) -> DirectoryDigest
fn clone(&self) -> DirectoryDigest
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 DirectoryDigest
Source§impl Debug for DirectoryDigest
impl Debug for DirectoryDigest
Source§impl Display for DirectoryDigest
impl Display for DirectoryDigest
impl Eq for DirectoryDigest
Source§impl FromStr for DirectoryDigest
impl FromStr for DirectoryDigest
Source§impl Hash for DirectoryDigest
impl Hash for DirectoryDigest
Source§impl Ord for DirectoryDigest
impl Ord for DirectoryDigest
Source§fn cmp(&self, other: &DirectoryDigest) -> Ordering
fn cmp(&self, other: &DirectoryDigest) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DirectoryDigest
impl PartialEq for DirectoryDigest
Source§impl PartialOrd for DirectoryDigest
impl PartialOrd for DirectoryDigest
impl StructuralPartialEq for DirectoryDigest
Auto Trait Implementations§
impl Freeze for DirectoryDigest
impl RefUnwindSafe for DirectoryDigest
impl Send for DirectoryDigest
impl Sync for DirectoryDigest
impl Unpin for DirectoryDigest
impl UnsafeUnpin for DirectoryDigest
impl UnwindSafe for DirectoryDigest
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