KeyProvider

Trait KeyProvider 

Source
pub trait KeyProvider {
    // Required method
    fn load(&self) -> Result<Vec<u8>>;
}
Expand description

Private key provider trait

Required Methods§

Source

fn load(&self) -> Result<Vec<u8>>

Load private key to memory

Implementations on Foreign Types§

Source§

impl KeyProvider for Vec<u8>

Source§

fn load(&self) -> Result<Vec<u8>>

Source§

impl<'a> KeyProvider for &'a str

Source§

fn load(&self) -> Result<Vec<u8>>

Source§

impl<'a> KeyProvider for &'a [u8]

Source§

fn load(&self) -> Result<Vec<u8>>

Source§

impl<const LEN: usize> KeyProvider for [u8; LEN]

Source§

fn load(&self) -> Result<Vec<u8>>

Implementors§