pub trait OpenMessageStorer: Send + Sync {
// Required method
fn insert_or_replace_open_message<'life0, 'async_trait>(
&'life0 self,
open_message: OpenMessage,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Define how to store the open message created at the end of the synchronization process
Required Methods§
Sourcefn insert_or_replace_open_message<'life0, 'async_trait>(
&'life0 self,
open_message: OpenMessage,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_or_replace_open_message<'life0, 'async_trait>(
&'life0 self,
open_message: OpenMessage,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store an open_message in the database