Skip to main content

KeyProvider

Trait KeyProvider 

Source
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§

Source

fn get_key(&self) -> &K

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§