Enum git2_hooks::HookResult
source · pub enum HookResult {
NoHookFound,
Ok {
hook: PathBuf,
},
RunNotSuccessful {
code: Option<i32>,
stdout: String,
stderr: String,
hook: PathBuf,
},
}
Expand description
Variants§
NoHookFound
No hook found
Ok
Hook executed with non error return code
RunNotSuccessful
Fields
Hook executed and returned an error code
Implementations§
source§impl HookResult
impl HookResult
Trait Implementations§
source§impl Debug for HookResult
impl Debug for HookResult
source§impl PartialEq for HookResult
impl PartialEq for HookResult
source§fn eq(&self, other: &HookResult) -> bool
fn eq(&self, other: &HookResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HookResult
impl StructuralEq for HookResult
impl StructuralPartialEq for HookResult
Auto Trait Implementations§
impl RefUnwindSafe for HookResult
impl Send for HookResult
impl Sync for HookResult
impl Unpin 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