pub enum HookResult {
NoHookFound,
Run(HookRunResponse),
}Variants§
NoHookFound
No hook found
Run(HookRunResponse)
Hook executed (check HookRunResponse.code for success/failure)
Implementations§
Source§impl HookResult
impl HookResult
Sourcepub const fn is_successful(&self) -> bool
pub const fn is_successful(&self) -> bool
helper to check if hook ran successfully (found and exit code 0)
Trait Implementations§
Source§impl Debug for HookResult
impl Debug for HookResult
Source§impl PartialEq for HookResult
impl PartialEq for HookResult
impl Eq for HookResult
impl StructuralPartialEq for HookResult
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