Trait salvo::Handler[][src]

pub trait Handler: 'static + Send + Sync {
    #[must_use = "handle future must be used"]
    #[must_use]
    pub 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 = ()> + 'async_trait + Send, Global>>
    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]
pub 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 = ()> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl<A, B, C, D, E, F, G, H, I> Handler for (A, B, C, D, E, F, G, H, I) where
    C: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    I: Handler
[src]

impl<A, B, C, D, E, F> Handler for (A, B, C, D, E, F) where
    C: Handler,
    E: Handler,
    B: Handler,
    A: Handler,
    D: Handler,
    F: 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
    C: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    L: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    K: Handler,
    I: Handler,
    J: Handler
[src]

impl<A, B, C, D, E> Handler for (A, B, C, D, E) where
    C: Handler,
    E: Handler,
    B: Handler,
    A: Handler,
    D: Handler
[src]

impl<A, B> Handler for (A, B) where
    B: Handler,
    A: Handler
[src]

impl<A, B, C, D, E, F, G> Handler for (A, B, C, D, E, F, G) where
    C: Handler,
    E: Handler,
    B: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: 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
    C: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    I: Handler,
    J: 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
    C: Handler,
    N: Handler,
    E: Handler,
    P: Handler,
    B: Handler,
    H: Handler,
    L: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    O: Handler,
    K: Handler,
    I: Handler,
    M: Handler,
    J: 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
    C: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    K: Handler,
    I: Handler,
    J: 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
    C: Handler,
    N: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    L: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    O: Handler,
    K: Handler,
    I: Handler,
    M: Handler,
    J: 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
    C: Handler,
    N: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    L: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    K: Handler,
    I: Handler,
    M: Handler,
    J: 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
    C: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    L: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler,
    K: Handler,
    I: Handler,
    M: Handler,
    J: Handler
[src]

impl<A, B, C, D, E, F, G, H> Handler for (A, B, C, D, E, F, G, H) where
    C: Handler,
    E: Handler,
    B: Handler,
    H: Handler,
    A: Handler,
    D: Handler,
    F: Handler,
    G: Handler
[src]

impl<A, B, C> Handler for (A, B, C) where
    C: Handler,
    B: Handler,
    A: Handler
[src]

impl<A> Handler for (A,) where
    A: Handler
[src]

impl<A, B, C, D> Handler for (A, B, C, D) where
    C: Handler,
    B: Handler,
    A: Handler,
    D: Handler
[src]

impl Handler for StaticFile[src]

impl<C> Handler for JwtHandler<C> where
    C: DeserializeOwned + Sync + Send + 'static, 
[src]

impl Handler for CompressionHandler[src]

impl Handler for MaxSizeHandler[src]

impl Handler for ProxyHandler[src]

impl Handler for CorsHandler[src]

impl Handler for StaticDir[src]

impl Handler for BasicAuthHandler[src]

Loading content...

Implementors

Loading content...