#[non_exhaustive]pub enum HookDecision<P> {
Continue,
Modify(P),
Abort(String),
}Expand description
What a hook wants the core to do.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
Proceed as planned.
Modify(P)
Proceed with this plan instead.
Abort(String)
Stop; the reason is shown and audited.
Trait Implementations§
Source§impl<P: Clone> Clone for HookDecision<P>
impl<P: Clone> Clone for HookDecision<P>
Source§impl<P: Debug> Debug for HookDecision<P>
impl<P: Debug> Debug for HookDecision<P>
impl<P: Eq> Eq for HookDecision<P>
Source§impl<P: PartialEq> PartialEq for HookDecision<P>
impl<P: PartialEq> PartialEq for HookDecision<P>
impl<P: PartialEq> StructuralPartialEq for HookDecision<P>
Auto Trait Implementations§
impl<P> Freeze for HookDecision<P>where
P: Freeze,
impl<P> RefUnwindSafe for HookDecision<P>where
P: RefUnwindSafe,
impl<P> Send for HookDecision<P>where
P: Send,
impl<P> Sync for HookDecision<P>where
P: Sync,
impl<P> Unpin for HookDecision<P>where
P: Unpin,
impl<P> UnsafeUnpin for HookDecision<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for HookDecision<P>where
P: UnwindSafe,
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