Struct tsukuyomi::router::Mount[][src]

pub struct Mount<'a> { /* fields omitted */ }

A proxy object for adding routes with the certain prefix.

Methods

impl<'a> Mount<'a>
[src]

Important traits for &'a mut R

Adds a route with the provided path, method and handler.

Important traits for &'a mut R

Equivalent to mount.route(path, Method::GET, handler).

Important traits for &'a mut R

Equivalent to mount.route(path, Method::POST, handler).

Important traits for &'a mut R

Equivalent to mount.route(path, Method::PUT, handler).

Important traits for &'a mut R

Equivalent to mount.route(path, Method::DELETE, handler).

Important traits for &'a mut R

Equivalent to mount.route(path, Method::HEAD, handler).

Important traits for &'a mut R

Equivalent to mount.route(path, Method::OPTIONS, handler).

Important traits for &'a mut R

Equivalent to mount.route(path, Method::PATCH, handler).

Trait Implementations

impl<'a> Debug for Mount<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Mount<'a>

impl<'a> Sync for Mount<'a>