pub enum HookState {
Installed,
Drifted,
Foreign,
Absent,
Unreadable(String),
}Expand description
What the hook file holds today.
Variants§
Installed
The file is this binary’s body, executable.
Drifted
The marker is present but the body or the mode drifted.
Foreign
A post-merge hook exists without the marker; it is someone else’s.
Absent
No post-merge hook exists.
Unreadable(String)
The hooks directory or the file could not be read.
Trait Implementations§
impl Eq for HookState
impl StructuralPartialEq for HookState
Auto Trait Implementations§
impl Freeze for HookState
impl RefUnwindSafe for HookState
impl Send for HookState
impl Sync for HookState
impl Unpin for HookState
impl UnsafeUnpin for HookState
impl UnwindSafe for HookState
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