pub enum HandlerType {
Around,
Before,
Primary,
After,
}Expand description
Which stage of a message send a handler runs in.
A send runs every applicable handler in this order: around handlers wrap
everything, then before, then the most specific primary, then after.
Variants§
Around
Wraps the whole send; must call call-next-handler to continue it.
Before
Runs before the primary handler.
Primary
Does the work and produces the send’s return value.
After
Runs after the primary handler.
Trait Implementations§
Source§impl Clone for HandlerType
impl Clone for HandlerType
impl Copy for HandlerType
Source§impl Debug for HandlerType
impl Debug for HandlerType
impl Eq for HandlerType
Source§impl PartialEq for HandlerType
impl PartialEq for HandlerType
impl StructuralPartialEq for HandlerType
Auto Trait Implementations§
impl Freeze for HandlerType
impl RefUnwindSafe for HandlerType
impl Send for HandlerType
impl Sync for HandlerType
impl Unpin for HandlerType
impl UnsafeUnpin for HandlerType
impl UnwindSafe for HandlerType
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