Enum git_pack::index::traverse::SafetyCheck [−][src]
pub enum SafetyCheck {
SkipFileChecksumVerification,
SkipFileAndObjectChecksumVerification,
SkipFileAndObjectChecksumVerificationAndNoAbortOnDecodeError,
All,
}
Expand description
The ways to validate decoded objects before passing them to the processor.
Variants
Don’t verify the validity of the checksums stored in the index and pack file
All of the above, and also don’t perform any object checksum verification
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.
Perform all available safety checks before operating on the pack and abort if any of them fails
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more