[−][src]Struct amiya::middleware::router::MethodRouter
Implementations
impl<Ex> MethodRouter<Ex> where
Ex: Send + Sync + 'static,
[src]
Ex: Send + Sync + 'static,
pub fn method<M: Middleware<Ex> + 'static>(
self,
method: Method,
middleware: M
) -> Self
[src]
self,
method: Method,
middleware: M
) -> Self
pub fn methods<H: AsRef<[Method]>, M: Middleware<Ex> + 'static>(
self,
methods: H,
middleware: M
) -> Self
[src]
self,
methods: H,
middleware: M
) -> Self
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]
Ex: Send + Sync + 'static,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
Ex: Send + Sync + 'static,
F: Fn(Context<Ex>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send + Sync,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 Self,
Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
F: 'async_trait,
[src]
&'life0 Self,
Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
F: 'async_trait,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,