Struct input_pipeline::inspect_handler::InspectHandler
source · pub struct InspectHandler<F> { /* private fields */ }
Expand description
A InputHandler that records various metrics about the flow of events. All events are passed through unmodified. Some properties of those events may be exposed in the metrics. No PII information should ever be exposed this way.
Trait Implementations§
source§impl<F: FnMut() -> Time + 'static> InputHandler for InspectHandler<F>
impl<F: FnMut() -> Time + 'static> InputHandler for InspectHandler<F>
source§fn handle_input_event<'async_trait>(
self: Rc<Self>,
input_event: InputEvent
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
fn handle_input_event<'async_trait>(
self: Rc<Self>,
input_event: InputEvent
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Auto Trait Implementations§
impl<F> !Freeze for InspectHandler<F>
impl<F> !RefUnwindSafe for InspectHandler<F>
impl<F> Send for InspectHandler<F>where
F: Send,
impl<F> !Sync for InspectHandler<F>
impl<F> Unpin for InspectHandler<F>where
F: Unpin,
impl<F> !UnwindSafe for InspectHandler<F>
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