Skip to main content

RouteMethods

Trait RouteMethods 

Source
pub trait RouteMethods {
    // Required methods
    fn on<Arguments, Input, H>(
        self,
        method: Method,
        handler: H,
    ) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn GET<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn POST<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn PUT<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn PATCH<Arguments, Input, H>(
        self,
        handler: H,
    ) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn DELETE<Arguments, Input, H>(
        self,
        handler: H,
    ) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn HEAD<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn OPTIONS<Arguments, Input, H>(
        self,
        handler: H,
    ) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn CONNECT<Arguments, Input, H>(
        self,
        handler: H,
    ) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
    fn TRACE<Arguments, Input, H>(
        self,
        handler: H,
    ) -> Route<H, Arguments, Input>
       where H: Handler<Arguments, Input>;
}

Required Methods§

Source

fn on<Arguments, Input, H>( self, method: Method, handler: H, ) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn GET<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn POST<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn PUT<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn PATCH<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn DELETE<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn HEAD<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn OPTIONS<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn CONNECT<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source

fn TRACE<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

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 RouteMethods for &'static str

Source§

fn on<Arguments, Input, H>( self, method: Method, handler: H, ) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn GET<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn POST<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn PUT<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn PATCH<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn DELETE<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn HEAD<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn OPTIONS<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn CONNECT<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Source§

fn TRACE<Arguments, Input, H>(self, handler: H) -> Route<H, Arguments, Input>
where H: Handler<Arguments, Input>,

Implementors§