Trait lightspeed_auth::repository::AuthRepositoryManager [−][src]
pub trait AuthRepositoryManager: Clone + Send + Sync {
type Conn: SqlConnection;
type C3P0: C3p0Pool<Conn = Self::Conn>;
type AuthAccountRepo: AuthAccountRepository<Conn = Self::Conn>;
type TokenRepo: TokenRepository<Conn = Self::Conn>;
fn c3p0(&self) -> &Self::C3P0;
fn start<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), LightSpeedError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn auth_account_repo(&self) -> Self::AuthAccountRepo;
fn token_repo(&self) -> Self::TokenRepo;
}