Trait http_srv::request::handler::HandlerFunc

source ·
pub trait HandlerFunc: Fn(&mut HttpRequest) -> Result<()> + Send + Sync + 'static { }
Expand description

HandlerFunc trait

Represents a function that handles an HttpRequest It receives a mutable reference to an HttpRequest and returns a Result<()>

Implementors§

source§

impl<T> HandlerFunc for T
where T: Fn(&mut HttpRequest) -> Result<()> + Send + Sync + 'static,