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() -> MonotonicInstant + 'static> Debug for InspectHandler<F>
impl<F: FnMut() -> MonotonicInstant + 'static> Debug for InspectHandler<F>
Source§impl<F: FnMut() -> MonotonicInstant + 'static> InputHandler for InspectHandler<F>
impl<F: FnMut() -> MonotonicInstant + '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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more