pub trait KmsClient: Send + Sync {
// Required methods
fn get_dek<'life0, 'life1, 'async_trait>(
&'life0 self,
column: &'life1 str,
version: u32,
) -> Pin<Box<dyn Future<Output = Result<DekBuffer, KmsError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn unwrap_dek<'life0, 'life1, 'async_trait>(
&'life0 self,
wrapped_dek: &'life1 [u8],
version: u32,
) -> Pin<Box<dyn Future<Output = Result<DekBuffer, KmsError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn rotate_key<'life0, 'life1, 'async_trait>(
&'life0 self,
column: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<u32, KmsError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
KMS 客户端 trait
Required Methods§
Sourcefn get_dek<'life0, 'life1, 'async_trait>(
&'life0 self,
column: &'life1 str,
version: u32,
) -> Pin<Box<dyn Future<Output = Result<DekBuffer, KmsError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_dek<'life0, 'life1, 'async_trait>(
&'life0 self,
column: &'life1 str,
version: u32,
) -> Pin<Box<dyn Future<Output = Result<DekBuffer, KmsError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
获取 DEK(数据加密密钥)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".