pub enum DispatchAction {
Proceed,
Repair {
name: String,
arguments: String,
},
Stop(String),
}Variants§
Proceed
Repair
Rewrite the call before it runs: a malformed name or JSON arguments become something the tool can actually use. Only the first hook that answers non-Proceed wins, so two hooks repairing different calls in the same turn cannot fight over one call.
Stop(String)
Trait Implementations§
Source§impl Clone for DispatchAction
impl Clone for DispatchAction
Source§impl Debug for DispatchAction
impl Debug for DispatchAction
impl Eq for DispatchAction
Source§impl PartialEq for DispatchAction
impl PartialEq for DispatchAction
impl StructuralPartialEq for DispatchAction
Auto Trait Implementations§
impl Forget for DispatchAction
impl Freeze for DispatchAction
impl Move for DispatchAction
impl RefUnwindSafe for DispatchAction
impl Send for DispatchActionwhere
RawVecInner: Send,
impl Sync for DispatchActionwhere
RawVecInner: Sync,
impl Unpin for DispatchAction
impl UnsafeUnpin for DispatchAction
impl UnwindSafe for DispatchActionwhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.