pub enum MutatorAction<Evt> {
Pass,
Modify(Evt),
Block {
reason: String,
},
}Expand description
Mutator 对事件的处理决策。
Variants§
Auto Trait Implementations§
impl<Evt> Freeze for MutatorAction<Evt>where
Evt: Freeze,
impl<Evt> RefUnwindSafe for MutatorAction<Evt>where
Evt: RefUnwindSafe,
impl<Evt> Send for MutatorAction<Evt>where
Evt: Send,
impl<Evt> Sync for MutatorAction<Evt>where
Evt: Sync,
impl<Evt> Unpin for MutatorAction<Evt>where
Evt: Unpin,
impl<Evt> UnsafeUnpin for MutatorAction<Evt>where
Evt: UnsafeUnpin,
impl<Evt> UnwindSafe for MutatorAction<Evt>where
Evt: 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