[][src]Trait lightspeed_auth::repository::AuthRepositoryManager

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;
#[must_use] 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; }

Associated Types

type Conn: SqlConnection

type C3P0: C3p0Pool<Conn = Self::Conn>

type AuthAccountRepo: AuthAccountRepository<Conn = Self::Conn>

type TokenRepo: TokenRepository<Conn = Self::Conn>

Loading content...

Required methods

fn c3p0(&self) -> &Self::C3P0

#[must_use]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

Loading content...

Implementors

impl AuthRepositoryManager for PgAuthRepositoryManager[src]

type Conn = PgConnection

type C3P0 = PgC3p0Pool

type AuthAccountRepo = PgAuthAccountRepository

type TokenRepo = PgTokenRepository

Loading content...