Skip to main content

server_wrappers

Function server_wrappers 

Source
pub fn server_wrappers(
    settings: &Settings,
) -> Result<ServerWrappers, HttpServerError>
Expand description

Creates a ServerWrappers instance from the given Settings.

This function initializes the server wrappers, including:

  • Prometheus metrics
  • CORS configuration

§Parameters

  • settings: Reference to the application’s runtime configuration.

§Returns

Returns a Result containing a ServerWrappers instance if successful, or an error if configuration fails.