pub enum HookMode {
Emit,
Flow,
Bail,
}Expand description
The tier-0 dispatch mode of a hook, which also fixes the legal reply (§3.3). Tier-0 handlers are ordinary async functions; the mode is what the bus enforces when it classifies a reply.
Variants§
Emit
Observe only; legal reply ack (§3.3 emit).
Flow
admit/pre only; legal replies flow:"next" / flow:"stop" (§3.3).
Bail
tool/pre, settle/pre; legal replies bail:null / bail:{deny}
(§3.3).
Trait Implementations§
impl Copy for HookMode
impl Eq for HookMode
impl StructuralPartialEq for HookMode
Auto Trait Implementations§
impl Forget for HookMode
impl Freeze for HookMode
impl Move for HookMode
impl RefUnwindSafe for HookMode
impl Send for HookMode
impl Sync for HookMode
impl Unpin for HookMode
impl UnsafeUnpin for HookMode
impl UnwindSafe for HookMode
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