Function rocket::config::active [] [src]

pub fn active() -> Option<&'static Config>

Retrieve the active configuration, if there is one.

This function is guaranteed to return Some once a Rocket application has started. Before a Rocket application has started, or when there is no active Rocket application (such as during testing), this function will return None.