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§
fn jwt_keys(&self) -> Option<&Arc<JwtKeys>>
fn sessions_ks(&self) -> &KeyspaceHandle
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".