Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn = Box<dyn Fn(&Map<String, Value>) -> Pin<Box<dyn Future<Output = bool>>> + Send>;
Available on crate feature logger only.
Expand description

Handler callback: invoked first on the raw JSON map; return false to stop further processing of the entry.

Aliased Typeยง

pub struct HandlerFn(/* private fields */);