pub enum SafetyCheck {
SkipFileChecksumVerification,
SkipFileAndObjectChecksumVerification,
SkipFileAndObjectChecksumVerificationAndNoAbortOnDecodeError,
All,
}
Expand description
The ways to validate decoded objects before passing them to the processor.
Variants
SkipFileChecksumVerification
Don’t verify the validity of the checksums stored in the index and pack file
SkipFileAndObjectChecksumVerification
All of the above, and also don’t perform any object checksum verification
SkipFileAndObjectChecksumVerificationAndNoAbortOnDecodeError
All of the above, and only log object decode errors.
Useful if there is a damaged pack and you would like to traverse as many objects as possible.
All
Perform all available safety checks before operating on the pack and abort if any of them fails
Trait Implementations
sourceimpl Clone for SafetyCheck
impl Clone for SafetyCheck
sourcefn clone(&self) -> SafetyCheck
fn clone(&self) -> SafetyCheck
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SafetyCheck
impl Debug for SafetyCheck
sourceimpl Default for SafetyCheck
impl Default for SafetyCheck
sourceimpl<'de> Deserialize<'de> for SafetyCheck
impl<'de> Deserialize<'de> for SafetyCheck
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for SafetyCheck
impl Hash for SafetyCheck
sourceimpl Ord for SafetyCheck
impl Ord for SafetyCheck
sourcefn cmp(&self, other: &SafetyCheck) -> Ordering
fn cmp(&self, other: &SafetyCheck) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SafetyCheck> for SafetyCheck
impl PartialEq<SafetyCheck> for SafetyCheck
sourcefn eq(&self, other: &SafetyCheck) -> bool
fn eq(&self, other: &SafetyCheck) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<SafetyCheck> for SafetyCheck
impl PartialOrd<SafetyCheck> for SafetyCheck
sourcefn partial_cmp(&self, other: &SafetyCheck) -> Option<Ordering>
fn partial_cmp(&self, other: &SafetyCheck) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for SafetyCheck
impl Serialize for SafetyCheck
impl Copy for SafetyCheck
impl Eq for SafetyCheck
impl StructuralEq for SafetyCheck
impl StructuralPartialEq for SafetyCheck
Auto Trait Implementations
impl RefUnwindSafe for SafetyCheck
impl Send for SafetyCheck
impl Sync for SafetyCheck
impl Unpin for SafetyCheck
impl UnwindSafe for SafetyCheck
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more