Skip to main content

TargetUserManager

Trait TargetUserManager 

Source
pub trait TargetUserManager: Send + Sync {
    // Required method
    fn lookup_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(String, String), LoopError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Looks up a user by username.

Required Methods§

Source

fn lookup_user<'life0, 'life1, 'async_trait>( &'life0 self, username: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(String, String), LoopError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Look up a user by username. Returns (user_id, username).

Implementors§