Trait ReadKey

Source
pub trait ReadKey {
    type Error;

    // Required method
    fn read_key(
        &self,
    ) -> impl Future<Output = Result<PrivateKeyDer<'static>, Self::Error>> + Send;
}
Expand description

Read a single private key.

Required Associated Types§

Source

type Error

An error that can occur while reading.

Required Methods§

Source

fn read_key( &self, ) -> impl Future<Output = Result<PrivateKeyDer<'static>, Self::Error>> + Send

Perform the reading.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§