pub trait StateCommitter: Send + Sync {
// Required method
fn commit<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
changeset: ThreadChangeSet,
precondition: VersionPrecondition,
) -> Pin<Box<dyn Future<Output = Result<u64, StateCommitError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Sink for committed thread deltas.
Required Methods§
Sourcefn commit<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
changeset: ThreadChangeSet,
precondition: VersionPrecondition,
) -> Pin<Box<dyn Future<Output = Result<u64, StateCommitError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
changeset: ThreadChangeSet,
precondition: VersionPrecondition,
) -> Pin<Box<dyn Future<Output = Result<u64, StateCommitError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Commit a single change set for a thread.
Returns the committed storage version after the write succeeds.