Skip to main content

ClientRegistry

Trait ClientRegistry 

Source
pub trait ClientRegistry:
    Send
    + Sync
    + 'static {
    // Required method
    fn find(
        &self,
        client_id: &str,
    ) -> impl Future<Output = Result<Option<ClientRegistration>, AppError>> + Send;

    // Provided method
    fn verify_secret(
        &self,
        client_id: &str,
        presented: &str,
    ) -> impl Future<Output = Result<bool, AppError>> + Send { ... }
}

Required Methods§

Source

fn find( &self, client_id: &str, ) -> impl Future<Output = Result<Option<ClientRegistration>, AppError>> + Send

Provided Methods§

Source

fn verify_secret( &self, client_id: &str, presented: &str, ) -> impl Future<Output = Result<bool, AppError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§