pub(crate) async fn maintenance_mode_layer(
state: State<ServerState>,
req: Request<Body>,
next: Next,
) -> Result<Response<Body>, MaintenanceModeLayerError>Expand description
Middleware layer that returns a maintenance mode error if the service is currently in maintenance mode.