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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".