Trait CredentialSource

Source
pub trait CredentialSource {
    // Required methods
    fn add_credential<'a>(
        &'a self,
        crew_id: CrewID,
        credential: MemberCredential,
    ) -> Pin<Box<dyn Future<Output = ()> + 'a>>;
    fn current_credentials_for<'a>(
        &'a self,
        crew_id: &'a CrewID,
    ) -> Vec<MemberCredential>;
    fn id_hash(&self) -> CredentialSourceHash;
    fn clone_ref(&self) -> Box<dyn CredentialSource>;
    fn current_state(&self) -> HashMap<CrewID, Vec<MemberCredential>>;
}

Required Methods§

Source

fn add_credential<'a>( &'a self, crew_id: CrewID, credential: MemberCredential, ) -> Pin<Box<dyn Future<Output = ()> + 'a>>

Source

fn current_credentials_for<'a>( &'a self, crew_id: &'a CrewID, ) -> Vec<MemberCredential>

Source

fn id_hash(&self) -> CredentialSourceHash

Source

fn clone_ref(&self) -> Box<dyn CredentialSource>

Source

fn current_state(&self) -> HashMap<CrewID, Vec<MemberCredential>>

Trait Implementations§

Implementations on Foreign Types§

Source§

impl CredentialSource for Box<dyn CredentialSource>

Source§

fn add_credential<'a>( &'a self, crew_id: CrewID, credential: MemberCredential, ) -> Pin<Box<dyn Future<Output = ()> + 'a>>

Source§

fn current_credentials_for<'a>( &'a self, crew_id: &'a CrewID, ) -> Vec<MemberCredential>

Source§

fn id_hash(&self) -> CredentialSourceHash

Source§

fn clone_ref(&self) -> Box<dyn CredentialSource>

Source§

fn current_state(&self) -> HashMap<CrewID, Vec<MemberCredential>>

Implementors§