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