EndpointHandler

Type Alias EndpointHandler 

Source
pub type EndpointHandler = Arc<dyn Fn(Option<EndpointRequest>) -> EndpointResponse + Send + Sync>;
Expand description

A custom endpoint handler function type. Takes optional request data and returns a response.

Aliased Typeยง

pub struct EndpointHandler { /* private fields */ }