Skip to main content

AuthUser

Trait AuthUser 

Source
pub trait AuthUser:
    Clone
    + Send
    + Sync
    + 'static {
    type Id: Clone + Eq + Hash + Send + Sync + 'static;

    // Required method
    fn id(&self) -> Self::Id;

    // Provided method
    fn session_auth_hash(&self) -> Option<&str> { ... }
}

Required Associated Types§

Source

type Id: Clone + Eq + Hash + Send + Sync + 'static

Required Methods§

Source

fn id(&self) -> Self::Id

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§