pub type RiRouteHandler = Arc<dyn Fn(RiGatewayRequest) -> Pin<Box<dyn Future<Output = RiResult<RiGatewayResponse>> + Send>> + Send + Sync>;Expand description
Type alias for route handler functions.
This type represents an asynchronous function that takes a gateway request and returns a gateway response. It is wrapped in an Arc to allow safe sharing across threads.
Aliased Typeยง
pub struct RiRouteHandler { /* private fields */ }