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§
sourcefn get_enc_ctx_key(&self) -> BufReadSized<32>
fn get_enc_ctx_key(&self) -> BufReadSized<32>
Return the encryption context key for passphrases, etc.
sourcefn get_dec_ctx_key(&self) -> BufReadSized<32>
fn get_dec_ctx_key(&self) -> BufReadSized<32>
Return the decryption context key for passphrases, etc.
sourcefn shutdown(&self) -> BoxFuture<'static, LairResult<()>>
fn shutdown(&self) -> BoxFuture<'static, LairResult<()>>
Shutdown the client connection.
sourcefn request(
&self,
request: LairApiEnum
) -> BoxFuture<'static, LairResult<LairApiEnum>>
fn request( &self, request: LairApiEnum ) -> BoxFuture<'static, LairResult<LairApiEnum>>
Handle a lair client request