pub trait SealingKeysProxyInterface: Send + Sync {
type CreateSealingKeyResponseFut: Future<Output = Result<SealingKeysCreateSealingKeyResult, Error>> + Send;
type SealResponseFut: Future<Output = Result<SealingKeysSealResult, Error>> + Send;
type UnsealResponseFut: Future<Output = Result<SealingKeysUnsealResult, Error>> + Send;
type UpgradeSealingKeyResponseFut: Future<Output = Result<SealingKeysUpgradeSealingKeyResult, Error>> + Send;
type DeleteSealingKeyResponseFut: Future<Output = Result<SealingKeysDeleteSealingKeyResult, Error>> + Send;
// Required methods
fn create_sealing_key(
&self,
key_info: &[u8],
) -> Self::CreateSealingKeyResponseFut;
fn seal(
&self,
key_info: &[u8],
key_blob: &[u8],
secret: &[u8],
) -> Self::SealResponseFut;
fn unseal(
&self,
key_info: &[u8],
key_blob: &[u8],
sealed_secret: &[u8],
) -> Self::UnsealResponseFut;
fn upgrade_sealing_key(
&self,
key_info: &[u8],
key_blob: &[u8],
) -> Self::UpgradeSealingKeyResponseFut;
fn delete_sealing_key(
&self,
key_blob: &[u8],
) -> Self::DeleteSealingKeyResponseFut;
}Required Associated Types§
type CreateSealingKeyResponseFut: Future<Output = Result<SealingKeysCreateSealingKeyResult, Error>> + Send
type SealResponseFut: Future<Output = Result<SealingKeysSealResult, Error>> + Send
type UnsealResponseFut: Future<Output = Result<SealingKeysUnsealResult, Error>> + Send
type UpgradeSealingKeyResponseFut: Future<Output = Result<SealingKeysUpgradeSealingKeyResult, Error>> + Send
type DeleteSealingKeyResponseFut: Future<Output = Result<SealingKeysDeleteSealingKeyResult, Error>> + Send
Required Methods§
fn create_sealing_key( &self, key_info: &[u8], ) -> Self::CreateSealingKeyResponseFut
fn seal( &self, key_info: &[u8], key_blob: &[u8], secret: &[u8], ) -> Self::SealResponseFut
fn unseal( &self, key_info: &[u8], key_blob: &[u8], sealed_secret: &[u8], ) -> Self::UnsealResponseFut
fn upgrade_sealing_key( &self, key_info: &[u8], key_blob: &[u8], ) -> Self::UpgradeSealingKeyResponseFut
fn delete_sealing_key( &self, key_blob: &[u8], ) -> Self::DeleteSealingKeyResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".