pub trait AsLairClient: 'static + Send + Sync {
    fn get_enc_ctx_key(&self) -> BufReadSized<32>;
    fn get_dec_ctx_key(&self) -> BufReadSized<32>;
    fn shutdown(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send + 'static, Global>>; fn request(
        &self,
        request: LairApiEnum
    ) -> Pin<Box<dyn Future<Output = Result<LairApiEnum, OneErr>> + Send + 'static, Global>>; }
Expand description

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

Required Methods§

Return the encryption context key for passphrases, etc.

Return the decryption context key for passphrases, etc.

Shutdown the client connection.

Handle a lair client request

Implementors§