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§
Source§impl Clone for SafetyCheck
impl Clone for SafetyCheck
Source§fn clone(&self) -> SafetyCheck
fn clone(&self) -> SafetyCheck
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SafetyCheck
impl Debug for SafetyCheck
Source§impl Default for SafetyCheck
impl Default for SafetyCheck
Source§fn default() -> SafetyCheck
fn default() -> SafetyCheck
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafetyCheck
impl<'de> Deserialize<'de> for SafetyCheck
Source§fn 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
Source§impl Hash for SafetyCheck
impl Hash for SafetyCheck
Source§impl Ord for SafetyCheck
impl Ord for SafetyCheck
Source§fn cmp(&self, other: &SafetyCheck) -> Ordering
fn cmp(&self, other: &SafetyCheck) -> Ordering
1.21.0 · 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
Source§impl PartialEq for SafetyCheck
impl PartialEq for SafetyCheck
Source§impl PartialOrd for SafetyCheck
impl PartialOrd for SafetyCheck
Source§impl Serialize for SafetyCheck
impl Serialize for SafetyCheck
impl Copy for SafetyCheck
impl Eq for SafetyCheck
impl StructuralPartialEq for SafetyCheck
Auto Trait Implementations§
impl Freeze for SafetyCheck
impl RefUnwindSafe for SafetyCheck
impl Send for SafetyCheck
impl Sync for SafetyCheck
impl Unpin for SafetyCheck
impl UnwindSafe for SafetyCheck
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