Skip to main content

HostWithStore

Trait HostWithStore 

Source
pub trait HostWithStore<T>: HasData + Send {
    // Required method
    fn prepare(
        accessor: &Accessor<T, Self>,
        input: Resource<Password>,
        salt: Vec<u8>,
        iterations: u32,
    ) -> impl Future<Output = Result<Result<Resource<DeriveInput>, Error>>> + Send;
}

Required Methods§

Source

fn prepare( accessor: &Accessor<T, Self>, input: Resource<Password>, salt: Vec<u8>, iterations: u32, ) -> impl Future<Output = Result<Result<Resource<DeriveInput>, Error>>> + Send

Parameterize a PBKDF2-HMAC-SHA-1 derivation. See pbkdf2-sha2.prepare for the salt and iterations contracts.

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§