pub struct LoggingHandler { /* private fields */ }
Expand description
Example event handler implementation
Implementations§
Trait Implementations§
Source§impl EventHandler for LoggingHandler
impl EventHandler for LoggingHandler
Source§fn handle_event<'life0, 'async_trait>(
&'life0 self,
_event: JetstreamEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_event<'life0, 'async_trait>(
&'life0 self,
_event: JetstreamEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle a received event
Source§fn handler_id(&self) -> String
fn handler_id(&self) -> String
Get the handler’s identifier
Auto Trait Implementations§
impl Freeze for LoggingHandler
impl RefUnwindSafe for LoggingHandler
impl Send for LoggingHandler
impl Sync for LoggingHandler
impl Unpin 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