Trait Algorithm
Source pub trait Algorithm {
type Source;
type Output;
// Required methods
fn unseal<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 Self::Source,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, CryptoError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn seal<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 Self::Source,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, CryptoError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}