pub trait ExtendedStorageOps {
// Required methods
fn establish_session_from_bundle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
address: &'life1 ProtocolAddress,
bundle: &'life2 PreKeyBundle,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn encrypt_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
remote_address: &'life1 ProtocolAddress,
plaintext: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<CiphertextMessage, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn decrypt_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
remote_address: &'life1 ProtocolAddress,
ciphertext: &'life2 CiphertextMessage,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
High-level operations for session establishment and message encryption/decryption