pub trait AsLairClient: 'static + Send + Sync {
    // Required methods
    fn get_enc_ctx_key(&self) -> BufReadSized<32>;
    fn get_dec_ctx_key(&self) -> BufReadSized<32>;
    fn shutdown(&self) -> BoxFuture<'static, LairResult<()>>;
    fn request(
        &self,
        request: LairApiEnum
    ) -> BoxFuture<'static, LairResult<LairApiEnum>>;
}
Expand description

Object-safe lair client trait. Implement this to provide a new lair client backend implementation.

Required Methods§

source

fn get_enc_ctx_key(&self) -> BufReadSized<32>

Return the encryption context key for passphrases, etc.

source

fn get_dec_ctx_key(&self) -> BufReadSized<32>

Return the decryption context key for passphrases, etc.

source

fn shutdown(&self) -> BoxFuture<'static, LairResult<()>>

Shutdown the client connection.

source

fn request( &self, request: LairApiEnum ) -> BoxFuture<'static, LairResult<LairApiEnum>>

Handle a lair client request

Implementors§