pub enum HookResult {
Continue(Option<Value>),
Block(String),
Retry(u64),
Skip,
}Expand description
Hook execution result
Variants§
Continue(Option<Value>)
Continue execution (with optional modified data)
Block(String)
Block execution
Retry(u64)
Retry after delay (milliseconds)
Skip
Skip remaining hooks but continue execution
Implementations§
Source§impl HookResult
impl HookResult
Sourcepub fn continue_with(modified: Value) -> Self
pub fn continue_with(modified: Value) -> Self
Create a continue result with modifications
Sourcepub fn is_continue(&self) -> bool
pub fn is_continue(&self) -> bool
Check if this is a continue result
Trait Implementations§
Source§impl Clone for HookResult
impl Clone for HookResult
Source§fn clone(&self) -> HookResult
fn clone(&self) -> HookResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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