pub struct LoggingHandler;Expand description
A built-in hook handler that logs every event via tracing.
Implementations§
Trait Implementations§
Source§impl Debug for LoggingHandler
impl Debug for LoggingHandler
Source§impl Default for LoggingHandler
impl Default for LoggingHandler
Source§fn default() -> LoggingHandler
fn default() -> LoggingHandler
Returns the “default value” for a type. Read more
Source§impl HookHandler for LoggingHandler
impl HookHandler for LoggingHandler
Source§fn subscribed(&self) -> &'static [HookEventKind]
fn subscribed(&self) -> &'static [HookEventKind]
Events this handler subscribes to.
Source§fn on_event<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 HookContext,
event: &'life2 mut HookEvent<'life3>,
) -> Pin<Box<dyn Future<Output = HookResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn on_event<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 HookContext,
event: &'life2 mut HookEvent<'life3>,
) -> Pin<Box<dyn Future<Output = HookResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Handles a runtime event.
Auto Trait Implementations§
impl Freeze for LoggingHandler
impl RefUnwindSafe for LoggingHandler
impl Send for LoggingHandler
impl Sync for LoggingHandler
impl Unpin for LoggingHandler
impl UnsafeUnpin for LoggingHandler
impl UnwindSafe for LoggingHandler
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