pub type SrvRespHandler<A, M> = Box<dyn FnOnce(&A, Result<M, ErrorMsg<M>>) -> Result<Response<BoxBody<Bytes, Infallible>>, HttpError> + Send>;Expand description
Type alias for the closure that processes an internal service response or error.
Receives Ok(M) on success or Err(ErrorMsg<M>) on service error.
Returns an HTTP response or an HTTP error.
Aliased Typeยง
pub struct SrvRespHandler<A, M>(/* private fields */);