pub enum Verdict {
Proceed,
Block,
}Expand description
What a HOOK concluded — the only thing git actually reads.
Distinct from Outcome, which is what one CHECK concluded. Git has exactly
two questions to ask a hook, so this has exactly two answers, and the i32
that expresses them lives at the process boundary rather than being threaded
through every hook, dispatcher and handler as it used to be.
Variants§
Implementations§
Trait Implementations§
impl Copy for Verdict
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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