pub trait ApplySettings {
    // Required method
    fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Self
       where A: DeserializeOwned;
}
Expand description

Extension trait for applying parsed settings to the server object.

Required Methods§

source

fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Selfwhere A: DeserializeOwned,

Apply a BasicSettings value to self.

Implementations on Foreign Types§

source§

impl<F, I, S, B> ApplySettings 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<A>(self, settings: &BasicSettings<A>) -> Selfwhere A: DeserializeOwned,

Implementors§