pub type MiddlewareFunction = Box<dyn Fn(&dyn Event) -> bool + Send + Sync>;
Expand description
Middleware function type
Middleware functions receive an event and return true
to allow
the event to continue processing, or false
to block it.
Aliased Typeยง
pub struct MiddlewareFunction(/* private fields */);