pub trait ToSecretAsymmetricByteAlgorithm {
type SecretKey: StorableType;
type Nonce;
type PublicKey;
// Required method
fn to_byte_algorithm<'async_trait, F, Fut>(
self,
public_key: Option<Entry<Self::PublicKey>>,
nonce: Option<Self::Nonce>,
f: F,
) -> Pin<Box<dyn Future<Output = Result<ByteAlgorithm, CryptoError>> + Send + 'async_trait>>
where F: FnOnce(Self::SecretKey) -> Fut + Send + 'async_trait,
Fut: Future<Output = Result<Entry<Self::SecretKey>, CryptoError>> + Send + 'async_trait,
Self: 'async_trait;
}Required Associated Types§
Required Methods§
fn to_byte_algorithm<'async_trait, F, Fut>( self, public_key: Option<Entry<Self::PublicKey>>, nonce: Option<Self::Nonce>, f: F, ) -> Pin<Box<dyn Future<Output = Result<ByteAlgorithm, CryptoError>> + Send + 'async_trait>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.