UseStateGuardOnApp

Trait UseStateGuardOnApp 

Source
pub trait UseStateGuardOnApp<Guard, Args, Error> {
    // Required method
    fn use_state_guard(self, guard: Guard, scope: Scope) -> Self;
}

Required Methods§

Source

fn use_state_guard(self, guard: Guard, scope: Scope) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Guard, Args, Error, T> UseStateGuardOnApp<Guard, Args, Error> for App<T>
where T: ServiceFactory<ServiceRequest, Config = (), Error = ActixWebError, InitError = ()>, Guard: GuardTrait<Args, Error>, Error: ResponseError + 'static, Args: FromRequest + 'static,

Source§

fn use_state_guard(self, guard: Guard, scope: Scope) -> Self

Implementors§