Trait StateStore
Source pub trait StateStore: Send + Sync {
// Required methods
fn get_last_result<'life0, 'life1, 'async_trait>(
&'life0 self,
rule_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PredicateResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_result<'life0, 'life1, 'async_trait>(
&'life0 self,
rule_id: &'life1 str,
current: PredicateResult,
) -> Pin<Box<dyn Future<Output = Result<RuleTransition>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn cleanup_expired<'life0, 'life1, 'async_trait>(
&'life0 self,
rule_id: &'life1 str,
ttl_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_last_transition_time<'life0, 'life1, 'async_trait>(
&'life0 self,
rule_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<DateTime<Utc>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}