[][src]Trait hreq::server::MethodHandlers

pub trait MethodHandlers<H>: Sized {
    fn method(self, method: Method, handler: H) -> Self;
fn all(self, handler: H) -> Self; fn get(self, handler: H) -> Self { ... }
fn head(self, handler: H) -> Self { ... }
fn post(self, handler: H) -> Self { ... }
fn put(self, handler: H) -> Self { ... }
fn delete(self, handler: H) -> Self { ... }
fn options(self, handler: H) -> Self { ... }
fn connect(self, handler: H) -> Self { ... }
fn patch(self, handler: H) -> Self { ... }
fn trace(self, handler: H) -> Self { ... } }

Required methods

fn method(self, method: Method, handler: H) -> Self

fn all(self, handler: H) -> Self

Loading content...

Provided methods

fn get(self, handler: H) -> Self

fn head(self, handler: H) -> Self

fn post(self, handler: H) -> Self

fn put(self, handler: H) -> Self

fn delete(self, handler: H) -> Self

fn options(self, handler: H) -> Self

fn connect(self, handler: H) -> Self

fn patch(self, handler: H) -> Self

fn trace(self, handler: H) -> Self

Loading content...

Implementors

impl<'a, State, H: Handler> MethodHandlers<H> for Route<'a, State> where
    State: Clone + Unpin + Send + Sync + 'static, 
[src]

impl<'a, State, H: StateHandler<State>> MethodHandlers<H> for StateRoute<'a, State> where
    State: Clone + Unpin + Send + Sync + 'static, 
[src]

Loading content...