[][src]Struct replicante_util_iron::RootedRouter

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

Specialised router to mount endpoints under a fixed root.

The root's prefix is automatically prepended to the URI handlers are registered with as well as the the Iron ::router::Router id.

Implementations

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

pub fn delete<S: AsRef<str>, H: Handler, I: AsRef<str>>(
    &mut self,
    glob: S,
    handler: H,
    route_id: I
) -> &mut RootedRouter<'a>
[src]

Like route, but specialized to the DELETE method.

pub fn get<S: AsRef<str>, H: Handler, I: AsRef<str>>(
    &mut self,
    glob: S,
    handler: H,
    route_id: I
) -> &mut RootedRouter<'a>
[src]

Like route, but specialized to the GET method.

pub fn post<S: AsRef<str>, H: Handler, I: AsRef<str>>(
    &mut self,
    glob: S,
    handler: H,
    route_id: I
) -> &mut RootedRouter<'a>
[src]

Like route, but specialized to the POST method.

pub fn put<S: AsRef<str>, H: Handler, I: AsRef<str>>(
    &mut self,
    glob: S,
    handler: H,
    route_id: I
) -> &mut RootedRouter<'a>
[src]

Like route, but specialized to the PUT method.

pub fn route<S: AsRef<str>, H: Handler, I: AsRef<str>>(
    &mut self,
    method: Method,
    glob: S,
    handler: H,
    route_id: I
) -> &mut RootedRouter<'a>
[src]

Wrapper for Router::route with additional features.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for RootedRouter<'a>

impl<'a> Send for RootedRouter<'a>

impl<'a> Sync for RootedRouter<'a>

impl<'a> Unpin for RootedRouter<'a>

impl<'a> !UnwindSafe for RootedRouter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,