pub trait RequestPartsExt {
// Required methods
fn get_app_state(&self) -> &AppState;
fn get_component<T: Clone + Send + Sync + 'static>(&self) -> Result<T>;
fn get_config<T: DeserializeOwned + Configurable>(&self) -> Result<T>;
}
Expand description
Extending the functionality of RequestParts
Required Methods§
sourcefn get_app_state(&self) -> &AppState
fn get_app_state(&self) -> &AppState
get AppState
sourcefn get_config<T: DeserializeOwned + Configurable>(&self) -> Result<T>
fn get_config<T: DeserializeOwned + Configurable>(&self) -> Result<T>
get Config
Object Safety§
This trait is not object safe.