trait RequestRouterParam {
// Required methods
fn get_str(&mut self, key: &str) -> Option<String>;
fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>;
fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>;
fn expect_str(&mut self, key: &str) -> IronResult<String>;
}
Required Methods§
fn get_str(&mut self, key: &str) -> Option<String>
fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>
fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>
fn expect_str(&mut self, key: &str) -> IronResult<String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.