pub struct VerifyOptions { /* private fields */ }Expand description
How a held tree is checked, beyond what is always checked.
Implementations§
Source§impl VerifyOptions
impl VerifyOptions
pub fn new() -> Self
Sourcepub fn rechunk(self, on: bool) -> Self
pub fn rechunk(self, on: bool) -> Self
Also chunks every file’s bytes again, and refuses a file whose list is not the one the chunker gives. With this, the same bytes always have the same file hash. It costs one more pass over the bytes.
Sourcepub fn discard_damaged(self, on: bool) -> Self
pub fn discard_damaged(self, on: bool) -> Self
Removes from the store what is damaged there: a chunk, a list or a record whose bytes are not what its hash says. The check then ends with one of them as missing, and a fetch of the tree brings them all again. Without this the check stops at a damaged thing and names it, and the store is left as it is.
Trait Implementations§
Source§impl Clone for VerifyOptions
impl Clone for VerifyOptions
impl Copy for VerifyOptions
Source§impl Debug for VerifyOptions
impl Debug for VerifyOptions
Source§impl Default for VerifyOptions
impl Default for VerifyOptions
impl Eq for VerifyOptions
Source§impl PartialEq for VerifyOptions
impl PartialEq for VerifyOptions
impl StructuralPartialEq for VerifyOptions
Auto Trait Implementations§
impl Forget for VerifyOptions
impl Freeze for VerifyOptions
impl Move for VerifyOptions
impl RefUnwindSafe for VerifyOptions
impl Send for VerifyOptions
impl Sync for VerifyOptions
impl Unpin for VerifyOptions
impl UnsafeUnpin for VerifyOptions
impl UnwindSafe for VerifyOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more