Skip to main content

BasicAuth

Trait BasicAuth 

Source
pub trait BasicAuth {
    // Required method
    fn login<'life0, 'async_trait, U, P>(
        &'life0 self,
        username: U,
        password: P,
        session: Arc<RwLock<Session>>,
    ) -> Pin<Box<dyn Future<Output = Result<Claims, Error>> + Send + 'async_trait>>
       where U: 'async_trait + AsRef<str> + Send + Sync,
             P: 'async_trait + AsRef<str> + Send + Sync,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn login<'life0, 'async_trait, U, P>( &'life0 self, username: U, password: P, session: Arc<RwLock<Session>>, ) -> Pin<Box<dyn Future<Output = Result<Claims, Error>> + Send + 'async_trait>>
where U: 'async_trait + AsRef<str> + Send + Sync, P: 'async_trait + AsRef<str> + Send + Sync, Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§