[−][src]Trait amiya::middleware::Middleware
Required methods
#[must_use]fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl<Ex> Middleware<Ex> for MethodRouter<Ex> where
Ex: Send + Sync + 'static,
[src]
Ex: Send + Sync + 'static,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl<Ex> Middleware<Ex> for Router<Ex> where
Ex: Send + Sync + 'static,
[src]
Ex: Send + Sync + 'static,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl<Ex> Middleware<Ex> for Custom<Ex> where
Ex: Send + Sync + 'static,
[src]
Ex: Send + Sync + 'static,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl<Ex, F> Middleware<Ex> for F where
Ex: Send + Sync + 'static,
F: Fn(Context<Ex>) -> BoxedResultFut + Send + Sync,
[src]
Ex: Send + Sync + 'static,
F: Fn(Context<Ex>) -> BoxedResultFut + Send + Sync,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,