pub trait ErasedEpisodicMemory: Send + Sync {
// Required methods
fn record_erased<'a>(
&'a self,
event_type: &'a str,
payload: Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>;
fn query_erased(
&self,
query: EpisodicQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<EpisodicEvent>>> + Send + '_>>;
fn clear_erased(
&self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>;
}Expand description
Object-safe wrapper for the EpisodicMemory trait, enabling dynamic
dispatch via Arc<dyn ErasedEpisodicMemory>.
Required Methods§
fn record_erased<'a>( &'a self, event_type: &'a str, payload: Value, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>
fn query_erased( &self, query: EpisodicQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<EpisodicEvent>>> + Send + '_>>
fn clear_erased(&self) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".