pub trait FederationBackend: Send + Sync {
Show 14 methods
// Required methods
fn cleanup<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_auth_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
auth_state: AuthState,
) -> Pin<Box<dyn Future<Output = Result<AuthState, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_identity_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
idp: IdentityProviderCreate,
) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_mapping<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
idp: Mapping,
) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_auth_state<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_auth_state<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<AuthState>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Mapping>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_identity_providers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 IdentityProviderListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_mappings<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 MappingListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Mapping>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn update_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
idp: IdentityProviderUpdate,
) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
idp: MappingUpdate,
) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Backend driver interface for the Federation Provider.
Required Methods§
Sourcefn cleanup<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cleanup<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Cleanup expired resources.
Sourcefn create_auth_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
auth_state: AuthState,
) -> Pin<Box<dyn Future<Output = Result<AuthState, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_auth_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
auth_state: AuthState,
) -> Pin<Box<dyn Future<Output = Result<AuthState, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create new authentication state.
Sourcefn create_identity_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
idp: IdentityProviderCreate,
) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_identity_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
idp: IdentityProviderCreate,
) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create Identity provider.
Sourcefn create_mapping<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
idp: Mapping,
) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_mapping<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
idp: Mapping,
) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create mapping.
Sourcefn delete_auth_state<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_auth_state<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete authentication state.
Sourcefn delete_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete identity provider.
Sourcefn delete_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete mapping.
Sourcefn get_auth_state<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<AuthState>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_auth_state<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<AuthState>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get authentication state.
Sourcefn get_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single identity provider by ID.
Sourcefn get_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Mapping>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Mapping>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single mapping by ID.
Sourcefn list_identity_providers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 IdentityProviderListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_identity_providers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 IdentityProviderListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List Identity Providers.
Sourcefn list_mappings<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 MappingListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Mapping>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_mappings<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 MappingListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Mapping>, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List Identity Providers.
Sourcefn update_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
idp: IdentityProviderUpdate,
) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_identity_provider<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
idp: IdentityProviderUpdate,
) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update Identity provider.
Sourcefn update_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
idp: MappingUpdate,
) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_mapping<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
idp: MappingUpdate,
) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update mapping.