pub trait AccountCache: Send + Sync {
type EA: Debug;
// Required methods
fn load_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
contact: &'life1 [String],
directory_url: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Self::EA>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn store_account<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
contact: &'life1 [String],
directory_url: &'life2 str,
account: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), Self::EA>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}