Skip to main content

AuthState

Trait AuthState 

Source
pub trait AuthState:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn jwt_keys(&self) -> Option<&Arc<JwtKeys>>;
    fn sessions_ks(&self) -> &KeyspaceHandle;
}
Expand description

Trait that each service’s AppState implements to provide the data needed by the auth extractors.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§