pub trait DeviceProxyInterface: Send + Sync {
type ProgramKeyResponseFut: Future<Output = Result<DeviceProgramKeyResult, Error>> + Send;
type DeriveRawSecretResponseFut: Future<Output = Result<DeviceDeriveRawSecretResult, Error>> + Send;
// Required methods
fn program_key(
&self,
wrapped_key: &[u8],
data_unit_size: u32,
) -> Self::ProgramKeyResponseFut;
fn derive_raw_secret(
&self,
wrapped_key: &[u8],
) -> Self::DeriveRawSecretResponseFut;
}Required Associated Types§
type ProgramKeyResponseFut: Future<Output = Result<DeviceProgramKeyResult, Error>> + Send
type DeriveRawSecretResponseFut: Future<Output = Result<DeviceDeriveRawSecretResult, Error>> + Send
Required Methods§
fn program_key( &self, wrapped_key: &[u8], data_unit_size: u32, ) -> Self::ProgramKeyResponseFut
fn derive_raw_secret( &self, wrapped_key: &[u8], ) -> Self::DeriveRawSecretResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".