Skip to main content

DurableConversationStore

Trait DurableConversationStore 

Source
pub trait DurableConversationStore: ConversationStore + CheckpointStore {
    // Required method
    fn commit_durable_turn(
        &self,
        command: DurableConversationCommit,
    ) -> ConversationStoreFuture<'_, Result<ConversationVersion, ConversationStoreError>>;
}
Expand description

Store capable of atomically committing conversation and recovery state.

Merely implementing ConversationStore and CheckpointStore is not sufficient: the final writes must share one real transaction.

Required Methods§

Source

fn commit_durable_turn( &self, command: DurableConversationCommit, ) -> ConversationStoreFuture<'_, Result<ConversationVersion, ConversationStoreError>>

Atomically appends a transcript turn and advances its checkpoint.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§