pub trait AuthRepositoryManager<Id: IdType>: Clone + Send + Sync {
    type Tx: Send + Sync;
    type C3P0: C3p0Pool<Tx = Self::Tx>;
    type AuthAccountRepo: AuthAccountRepository<Id, Tx = Self::Tx>;
    type TokenRepo: TokenRepository<Id, Tx = Self::Tx>;

    // Required methods
    fn c3p0(&self) -> &Self::C3P0;
    fn start(&self) -> impl Future<Output = Result<(), LsError>> + Send;
    fn auth_account_repo(&self) -> Self::AuthAccountRepo;
    fn token_repo(&self) -> Self::TokenRepo;
}

Required Associated Types§

source

type Tx: Send + Sync

source

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

source

type AuthAccountRepo: AuthAccountRepository<Id, Tx = Self::Tx>

source

type TokenRepo: TokenRepository<Id, Tx = Self::Tx>

Required Methods§

source

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

source

fn start(&self) -> impl Future<Output = Result<(), LsError>> + Send

source

fn auth_account_repo(&self) -> Self::AuthAccountRepo

source

fn token_repo(&self) -> Self::TokenRepo

Object Safety§

This trait is not object safe.

Implementors§