Skip to main content

RequestRouterParam

Trait RequestRouterParam 

Source
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§

Source

fn get_str(&mut self, key: &str) -> Option<String>

Source

fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>

Source

fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>

Source

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".

Implementations on Foreign Types§

Source§

impl RequestRouterParam for Request<'_, '_>

Source§

fn get_str(&mut self, key: &str) -> Option<String>

Source§

fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>

Source§

fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>

Source§

fn expect_str(&mut self, key: &str) -> IronResult<String>

Implementors§