pub trait ToPublicAsymmetricByteAlgorithm {
type SecretKey;
type Nonce;
type PublicKey: StorableType;
// Required method
fn to_byte_algorithm<'async_trait, F, Fut>(
self,
secret_key: Entry<Self::SecretKey>,
nonce: Option<Self::Nonce>,
f: F,
) -> Pin<Box<dyn Future<Output = Result<ByteAlgorithm, CryptoError>> + Send + 'async_trait>>
where F: FnOnce(Self::PublicKey) -> Fut + Send + 'async_trait,
Fut: Future<Output = Result<Entry<Self::PublicKey>, CryptoError>> + Send + 'async_trait,
Self: 'async_trait;
}Required Associated Types§
Required Methods§
fn to_byte_algorithm<'async_trait, F, Fut>( self, secret_key: Entry<Self::SecretKey>, 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.