[][src]Struct pathmaker::router::Route

pub struct Route<M, H> { /* fields omitted */ }

A single route in the router. This contains information about the path; specifically, the path itself, the method, the handler, and how to match it.

Methods

impl<M, H> Route<M, H>[src]

pub fn new<P>(path: P, method: M, handler: H) -> Route<M, H> where
    P: Into<Cow<'static, str>>, 
[src]

Creates a new route with the given information. The path is parsed, and the new route is returned.

Trait Implementations

impl<M: Clone, H: Clone> Clone for Route<M, H>[src]

impl<M: Debug, H: Debug> Debug for Route<M, H>[src]

Auto Trait Implementations

impl<M, H> Send for Route<M, H> where
    H: Send,
    M: Send

impl<M, H> Sync for Route<M, H> where
    H: Sync,
    M: Sync

impl<M, H> Unpin for Route<M, H> where
    H: Unpin,
    M: Unpin

impl<M, H> UnwindSafe for Route<M, H> where
    H: UnwindSafe,
    M: UnwindSafe

impl<M, H> !RefUnwindSafe for Route<M, H>

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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