pub trait CryptManagementProxyInterface: Send + Sync {
type AddWrappingKeyResponseFut: Future<Output = Result<CryptManagementAddWrappingKeyResult, Error>> + Send;
type SetActiveKeyResponseFut: Future<Output = Result<CryptManagementSetActiveKeyResult, Error>> + Send;
type ForgetWrappingKeyResponseFut: Future<Output = Result<CryptManagementForgetWrappingKeyResult, Error>> + Send;
// Required methods
fn add_wrapping_key(
&self,
wrapping_key_id: &[u8; 16],
key: &[u8],
) -> Self::AddWrappingKeyResponseFut;
fn set_active_key(
&self,
purpose: KeyPurpose,
wrapping_key_id: &[u8; 16],
) -> Self::SetActiveKeyResponseFut;
fn forget_wrapping_key(
&self,
wrapping_key_id: &[u8; 16],
) -> Self::ForgetWrappingKeyResponseFut;
}Required Associated Types§
type AddWrappingKeyResponseFut: Future<Output = Result<CryptManagementAddWrappingKeyResult, Error>> + Send
type SetActiveKeyResponseFut: Future<Output = Result<CryptManagementSetActiveKeyResult, Error>> + Send
type ForgetWrappingKeyResponseFut: Future<Output = Result<CryptManagementForgetWrappingKeyResult, Error>> + Send
Required Methods§
fn add_wrapping_key( &self, wrapping_key_id: &[u8; 16], key: &[u8], ) -> Self::AddWrappingKeyResponseFut
fn set_active_key( &self, purpose: KeyPurpose, wrapping_key_id: &[u8; 16], ) -> Self::SetActiveKeyResponseFut
fn forget_wrapping_key( &self, wrapping_key_id: &[u8; 16], ) -> Self::ForgetWrappingKeyResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".