Skip to main content

CredentialHandler

Trait CredentialHandler 

Source
pub trait CredentialHandler<Cx = RequestContext>:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_credentials<'life0, 'async_trait>(
        &'life0 self,
        request: ListCredentialsRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ListCredentialsResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_credential<'life0, 'async_trait>(
        &'life0 self,
        request: CreateCredentialRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_credential<'life0, 'async_trait>(
        &'life0 self,
        request: GetCredentialRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_credential<'life0, 'async_trait>(
        &'life0 self,
        request: UpdateCredentialRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_credential<'life0, 'async_trait>(
        &'life0 self,
        request: DeleteCredentialRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn list_credentials<'life0, 'async_trait>( &'life0 self, request: ListCredentialsRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ListCredentialsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_credential<'life0, 'async_trait>( &'life0 self, request: CreateCredentialRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_credential<'life0, 'async_trait>( &'life0 self, request: GetCredentialRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_credential<'life0, 'async_trait>( &'life0 self, request: UpdateCredentialRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_credential<'life0, 'async_trait>( &'life0 self, request: DeleteCredentialRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§