Trait salvo_core::Handler [−][src]
pub trait Handler: Send + Sync + 'static { #[must_use = "handle future must be used"] #[must_use] fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait; }
Required methods
#[must_use = "handle future must be used"]#[must_use]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
#[must_use = "handle future must be used"]
#[must_use]
fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Implementations on Foreign Types
impl<A> Handler for (A,) where
A: Handler,
[src]
impl<A> Handler for (A,) where
A: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B> Handler for (A, B) where
A: Handler,
B: Handler,
[src]
impl<A, B> Handler for (A, B) where
A: Handler,
B: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C> Handler for (A, B, C) where
A: Handler,
B: Handler,
C: Handler,
[src]
impl<A, B, C> Handler for (A, B, C) where
A: Handler,
B: Handler,
C: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D> Handler for (A, B, C, D) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
[src]
impl<A, B, C, D> Handler for (A, B, C, D) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E> Handler for (A, B, C, D, E) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
[src]
impl<A, B, C, D, E> Handler for (A, B, C, D, E) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F> Handler for (A, B, C, D, E, F) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
[src]
impl<A, B, C, D, E, F> Handler for (A, B, C, D, E, F) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G> Handler for (A, B, C, D, E, F, G) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
[src]
impl<A, B, C, D, E, F, G> Handler for (A, B, C, D, E, F, G) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H> Handler for (A, B, C, D, E, F, G, H) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
[src]
impl<A, B, C, D, E, F, G, H> Handler for (A, B, C, D, E, F, G, H) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I> Handler for (A, B, C, D, E, F, G, H, I) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I> Handler for (A, B, C, D, E, F, G, H, I) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J> Handler for (A, B, C, D, E, F, G, H, I, J) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J> Handler for (A, B, C, D, E, F, G, H, I, J) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J, K> Handler for (A, B, C, D, E, F, G, H, I, J, K) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K> Handler for (A, B, C, D, E, F, G, H, I, J, K) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J, K, L> Handler for (A, B, C, D, E, F, G, H, I, J, K, L) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K, L> Handler for (A, B, C, D, E, F, G, H, I, J, K, L) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M, N) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
N: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M, N) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
N: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
N: Handler,
O: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
N: Handler,
O: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
N: Handler,
O: Handler,
P: Handler,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Handler for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) where
A: Handler,
B: Handler,
C: Handler,
D: Handler,
E: Handler,
F: Handler,
G: Handler,
H: Handler,
I: Handler,
J: Handler,
K: Handler,
L: Handler,
M: Handler,
N: Handler,
O: Handler,
P: Handler,
[src]fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘ where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,