pub enum HookAction {
Continue,
Skip {
reason: String,
},
Terminate {
reason: String,
},
}Expand description
Action to take after processing a hook event.
Variants§
Continue
Continue normal execution.
Skip
Skip the current operation and return a rejection message.
Terminate
Terminate the loop immediately.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookAction
impl RefUnwindSafe for HookAction
impl Send for HookAction
impl Sync for HookAction
impl Unpin for HookAction
impl UnsafeUnpin for HookAction
impl UnwindSafe for HookAction
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