[][src]Struct amiya::middleware::router::MethodRouter

pub struct MethodRouter<Ex> { /* fields omitted */ }

Implementations

impl<Ex> MethodRouter<Ex> where
    Ex: Send + Sync + 'static, 
[src]

pub fn method<M: Middleware<Ex> + 'static>(
    self,
    method: Method,
    middleware: M
) -> Self
[src]

pub fn methods<H: AsRef<[Method]>, M: Middleware<Ex> + 'static>(
    self,
    methods: H,
    middleware: M
) -> Self
[src]

pub fn get<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn head<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn post<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn put<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn delete<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn connect<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn options<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn trace<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn patch<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

pub fn all<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self[src]

Trait Implementations

impl<Ex> Debug for MethodRouter<Ex>[src]

impl<Ex> Default for MethodRouter<Ex>[src]

impl<Ex> Middleware<Ex> for MethodRouter<Ex> where
    Ex: Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<Ex> !RefUnwindSafe for MethodRouter<Ex>

impl<Ex> Send for MethodRouter<Ex>

impl<Ex> Sync for MethodRouter<Ex>

impl<Ex> Unpin for MethodRouter<Ex>

impl<Ex> !UnwindSafe for MethodRouter<Ex>

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<Ex, F> Middleware<Ex> for F where
    Ex: Send + Sync + 'static,
    F: Fn(Context<Ex>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send + Sync
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,