pub struct ChainHook { /* private fields */ }Expand description
A hook that delegates to two hooks in sequence.
Implementations§
Trait Implementations§
Source§impl DispatchHook for ChainHook
impl DispatchHook for ChainHook
Source§fn on_dispatch_start(&self, info: &DispatchInfo) -> HookToken
fn on_dispatch_start(&self, info: &DispatchInfo) -> HookToken
Invoked just before the handler runs. Return a token that will be
passed to
on_dispatch_end.Source§fn on_dispatch_end(
&self,
token: HookToken,
info: &DispatchInfo,
error: Option<&RpcError>,
stats: &CallStatistics,
)
fn on_dispatch_end( &self, token: HookToken, info: &DispatchInfo, error: Option<&RpcError>, stats: &CallStatistics, )
Invoked once the handler has returned and all logs/batches have been
written to the transport.
Auto Trait Implementations§
impl !RefUnwindSafe for ChainHook
impl !UnwindSafe for ChainHook
impl Freeze for ChainHook
impl Send for ChainHook
impl Sync for ChainHook
impl Unpin for ChainHook
impl UnsafeUnpin for ChainHook
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