pub trait MemoryDecay: Send + Sync {
// Required method
fn decay<'life0, 'life1, 'async_trait>(
&'life0 self,
policy: &'life1 DecayPolicy,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Fading of unrecalled memory, applied by the store.
Required Methods§
fn decay<'life0, 'life1, 'async_trait>(
&'life0 self,
policy: &'life1 DecayPolicy,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl MemoryDecay for SqliteMemory
Fading of unrecalled facts, episodes and behavior patterns.