Struct tower_web::config::Config [−][src]
pub struct Config { /* fields omitted */ }A type of application level configuration.
Methods
impl Config[src]
impl Configpub fn get<T: 'static>(&self) -> Option<&T>[src]
pub fn get<T: 'static>(&self) -> Option<&T>Get the configuration value of the specified type.
If a configuration value of type T is stored in Config, it is
returned. Otherwise, None is returned.
Trait Implementations
impl Clone for Config[src]
impl Clone for Configfn clone(&self) -> Config[src]
fn clone(&self) -> ConfigReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Config[src]
impl Debug for Config