pub enum HashMode {
Empty,
Plaintext,
Hashed,
}Expand description
Per-file format detected by detect_hash_mode. Drives whether
gitway hosts add should emit a hashed or plaintext entry by
default.
Variants§
Empty
File does not exist, or contains no recognizable host lines.
Plaintext
At least one direct line uses the plaintext host SHA256:fp
shape; no hashed entries seen. New entries default to
plaintext.
Hashed
At least one direct line uses the |1|salt|hash SHA256:fp
shape. New entries default to hashed.
Trait Implementations§
impl Copy for HashMode
impl Eq for HashMode
impl StructuralPartialEq for HashMode
Auto Trait Implementations§
impl Freeze for HashMode
impl RefUnwindSafe for HashMode
impl Send for HashMode
impl Sync for HashMode
impl Unpin for HashMode
impl UnsafeUnpin for HashMode
impl UnwindSafe for HashMode
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