pub trait ReadKey {
    type Error;

    // Required method
    fn read_key<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<PrivateKeyDer<'static>, Self::Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
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<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<PrivateKeyDer<'static>, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Perform the reading.

Implementors§