Skip to main content

StateCommitter

Trait StateCommitter 

Source
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§

Source

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.

Trait Implementations§

Source§

impl Debug for dyn StateCommitter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§