pub trait KeyProvider<K> {
// Required method
fn get_key(&self) -> &K;
}Expand description
Trait to provide the correct key from SessionKeys or GlobalPublicKeys based on the key type. This enables polymorphic key access in the Client.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".