pub trait KmsApi: Send + Sync {
// Required methods
fn kms_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<KmsStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn kms_list_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
limit: u32,
marker: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<KmsKeyPage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_describe_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<KmsKey>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_create_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsCreateKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsCreateKeyResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_delete_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsDeleteKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsDeleteKeyResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_cancel_key_deletion<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<KmsCancelKeyDeletionResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_configure<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsConfigureRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_reconfigure<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsConfigureRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn kms_start<'life0, 'async_trait>(
&'life0 self,
force: bool,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn kms_stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
RustFS KMS administration operations.
Required Methods§
fn kms_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<KmsStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn kms_list_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
limit: u32,
marker: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<KmsKeyPage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_describe_key<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<KmsKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_create_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsCreateKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsCreateKeyResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_delete_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsDeleteKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsDeleteKeyResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_cancel_key_deletion<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<KmsCancelKeyDeletionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_configure<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsConfigureRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_reconfigure<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KmsConfigureRequest,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kms_start<'life0, 'async_trait>(
&'life0 self,
force: bool,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn kms_stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<KmsServiceState>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".