Skip to main content

LogStore

Trait LogStore 

Source
pub trait LogStore: Send + Sync {
    // Required methods
    fn read(&self, thread_id: &str) -> Result<Vec<Fact>, ActorError>;
    fn append(
        &self,
        thread_id: &str,
        facts: &[NewFact],
        cause: Option<&str>,
    ) -> Result<Vec<Fact>, ActorError>;
}

Required Methods§

Source

fn read(&self, thread_id: &str) -> Result<Vec<Fact>, ActorError>

Source

fn append( &self, thread_id: &str, facts: &[NewFact], cause: Option<&str>, ) -> Result<Vec<Fact>, ActorError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§