# Trait actix_settings::ApplySettings

source ·

    pub trait ApplySettings<S> {
        // Required method
        fn apply_settings(self, settings: &S) -> Self;
    }

Expand description

Extension trait for applying parsed settings to the server object.

## Required Methods§

source

#### fn apply_settings(self, settings: &S) -> Self

Apply some settings object value to `self`.

## Object Safety§

This trait is not object safe.

## Implementations on Foreign Types§

source§

### impl<F, I, S, B> ApplySettings<ActixSettings> for HttpServer<F, I, S, B>where F: Fn() -> I + Send + Clone + 'static, I: IntoServiceFactory<S, Request>, S: ServiceFactory<Request, Config = AppConfig> + 'static, S::Error: Into<Error> + 'static, S::InitError: Debug, S::Response: Into<Response<B>> + 'static, S::Future: 'static, B: MessageBody + 'static,

source§

#### fn apply_settings(self, settings: &ActixSettings) -> Self

source§

### impl<F, I, S, B, A> ApplySettings<BasicSettings<A>> for HttpServer<F, I, S, B>where F: Fn() -> I + Send + Clone + 'static, I: IntoServiceFactory<S, Request>, S: ServiceFactory<Request, Config = AppConfig> + 'static, S::Error: Into<Error> + 'static, S::InitError: Debug, S::Response: Into<Response<B>> + 'static, S::Future: 'static, B: MessageBody + 'static, A: DeserializeOwned,

source§

#### fn apply_settings(self, settings: &BasicSettings<A>) -> Self

## Implementors§