Enum gix_pack::index::traverse::SafetyCheck
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)