Trait axum_starter::PrepareMiddlewareEffect

source ·
pub trait PrepareMiddlewareEffect<S>: Sized + 'static {
    type Middleware: Layer<S> + 'static;

    // Required method
    fn take(self, states: &mut StateCollector) -> Self::Middleware;
}
Expand description

prepare for Middleware

it can adding middleware and state

Required Associated Types§

source

type Middleware: Layer<S> + 'static

Required Methods§

source

fn take(self, states: &mut StateCollector) -> Self::Middleware

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S> PrepareMiddlewareEffect<S> for ()

Implementors§

source§

impl<State: 'static, Service> PrepareMiddlewareEffect<Service> for AddState<State>