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§
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
Object Safety§
This trait is not object safe.