pub enum HookType {
Preexec,
Precmd,
}Expand description
Shell hook event types.
Used by the hidden _hook subcommand to distinguish between
pre-execution (captures command text) and post-execution
(captures exit code) hook events.
Variants§
Preexec
Before command execution - receives command text
Precmd
After command execution - receives exit code
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookType
impl RefUnwindSafe for HookType
impl Send for HookType
impl Sync for HookType
impl Unpin for HookType
impl UnwindSafe for HookType
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