[][src]Struct hreq::server::Route

pub struct Route<'a, State> { /* fields omitted */ }

Implementations

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

pub fn middleware<M: Middleware>(self, middleware: M) -> Self[src]

pub fn router(self, router: Router<State>) -> Self[src]

pub fn with_state(self) -> StateRoute<'a, State>[src]

Trait Implementations

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

Auto Trait Implementations

impl<'a, State> !RefUnwindSafe for Route<'a, State>

impl<'a, State> Send for Route<'a, State>

impl<'a, State> Sync for Route<'a, State>

impl<'a, State> Unpin for Route<'a, State>

impl<'a, State> !UnwindSafe for Route<'a, State>

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> Instrument for T[src]

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

impl<T> Sealed<T> for T where
    T: ?Sized

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> WithSubscriber for T[src]