[][src]Trait http_tools::request::Extension

pub trait Extension {
    fn filter(&self) -> Option<&Self>;
}

The Extension trait provides additional methods to the Http Request type

Required methods

fn filter(&self) -> Option<&Self>

Creates an Option<&Request> that can be filtered on using the Filter trait. Whenever this filter struct is passed through a filter function it will return Some if the inner Request passed the filter, or None if the inner Request failed the filter.

Loading content...

Implementations on Foreign Types

impl<R> Extension for Request<R>[src]

Loading content...

Implementors

Loading content...