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§
fn find( &self, client_id: &str, ) -> impl Future<Output = Result<Option<ClientRegistration>, AppError>> + Send
Provided Methods§
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".