pub enum TreeIntegrityEvent<'a> {
EnterTree {
hash: ContentHash,
tree: &'a Tree,
},
BlobLeaf {
entry: &'a TreeEntry,
path: String,
},
TreeRef {
parent_hash: ContentHash,
entry: &'a TreeEntry,
},
}Expand description
Events emitted while walking reachable trees for integrity checks.
Variants§
EnterTree
A tree was entered for the first time during this walk.
BlobLeaf
A blob file entry at path (symlinks and gitlinks are excluded).
TreeRef
A child tree entry from parent_hash.
Trait Implementations§
Source§impl<'a> Clone for TreeIntegrityEvent<'a>
impl<'a> Clone for TreeIntegrityEvent<'a>
Source§fn clone(&self) -> TreeIntegrityEvent<'a>
fn clone(&self) -> TreeIntegrityEvent<'a>
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<'a> Debug for TreeIntegrityEvent<'a>
impl<'a> Debug for TreeIntegrityEvent<'a>
impl<'a> Eq for TreeIntegrityEvent<'a>
Source§impl<'a> PartialEq for TreeIntegrityEvent<'a>
impl<'a> PartialEq for TreeIntegrityEvent<'a>
Source§fn eq(&self, other: &TreeIntegrityEvent<'a>) -> bool
fn eq(&self, other: &TreeIntegrityEvent<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for TreeIntegrityEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for TreeIntegrityEvent<'a>
impl<'a> RefUnwindSafe for TreeIntegrityEvent<'a>
impl<'a> Send for TreeIntegrityEvent<'a>
impl<'a> Sync for TreeIntegrityEvent<'a>
impl<'a> Unpin for TreeIntegrityEvent<'a>
impl<'a> UnsafeUnpin for TreeIntegrityEvent<'a>
impl<'a> UnwindSafe for TreeIntegrityEvent<'a>
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