pub enum HookResult {
Success,
NotFound,
Failed(i32),
}Expand description
Result of running a hook.
Variants§
Success
Hook ran successfully (exit code 0).
NotFound
Hook does not exist or is not executable — treated as success.
Failed(i32)
Hook ran but returned a non-zero exit code.
Implementations§
Source§impl HookResult
impl HookResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookResult
impl RefUnwindSafe for HookResult
impl Send for HookResult
impl Sync for HookResult
impl Unpin for HookResult
impl UnsafeUnpin for HookResult
impl UnwindSafe for HookResult
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