pub enum HookResult {
Continue,
Skip,
Deny {
reason: String,
},
Modify(HookEvent<'static>),
}Expand description
The outcome returned by an individual hook handler.
Variants§
Continue
Continue dispatching to the next subscribed handler.
Skip
Stop dispatching and ask the caller to skip the wrapped action.
Deny
Stop dispatching and deny the wrapped action.
Modify(HookEvent<'static>)
Replace the current event and continue dispatching.
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