pub struct NoopHookEngine;Expand description
Default hook engine: dispatch uses the trait’s default implementation (Proceed,
i.e., no-op).
When assembling a session/turn without an explicitly injected hook engine, this is
used — ensuring that “no hook configured = main loop behavior is completely
unchanged”, analogous to crate::http::NoopHttpClient.
Trait Implementations§
Source§impl Debug for NoopHookEngine
impl Debug for NoopHookEngine
Source§impl Default for NoopHookEngine
impl Default for NoopHookEngine
Source§fn default() -> NoopHookEngine
fn default() -> NoopHookEngine
Returns the “default value” for a type. Read more
Source§impl HookEngine for NoopHookEngine
impl HookEngine for NoopHookEngine
Source§fn dispatch<'a>(
&'a self,
_step: &'a mut dyn HookStep,
_ctx: HookCtx<'a>,
) -> BoxFuture<'a, HookControl>
fn dispatch<'a>( &'a self, _step: &'a mut dyn HookStep, _ctx: HookCtx<'a>, ) -> BoxFuture<'a, HookControl>
Default implementation returns
step::HookControl::Proceed (no
intervention); NoopHookEngine uses this directly. DefaultHookEngine
overrides it for real dispatch.Auto Trait Implementations§
impl Freeze for NoopHookEngine
impl RefUnwindSafe for NoopHookEngine
impl Send for NoopHookEngine
impl Sync for NoopHookEngine
impl Unpin for NoopHookEngine
impl UnsafeUnpin for NoopHookEngine
impl UnwindSafe for NoopHookEngine
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