Enum git_odb::data::input::Mode [−][src]
pub enum Mode {
AsIs,
Verify,
Restore,
}
Expand description
Iteration Mode
Variants
Provide the trailer as read from the pack
Generate an own hash and trigger an error on the last iterated object if it does not match the hash provided with the pack.
This way the one iterating the data cannot miss corruption as long as the iteration is continued through to the end.
Generate an own hash and if there was an error or the objects are depleted early due to partial packs, return the last valid entry and with our own hash thus far. Note that the existing pack hash, if present, will be ignored. As we won’t know which objects fails, every object will have the hash obtained thus far. This also means that algorithms must know about this possibility, or else might wrongfully assume the pack is finished.
Trait Implementations
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 Mode
impl UnwindSafe for Mode
Blanket Implementations
Mutably borrows from an owned value. Read more