pub trait LedgerScheduleBridge: Send + Sync {
// Required methods
fn sync_record_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 LedgerRecord,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, String>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn release_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
Port through which ledger writers keep real schedules in step with a
record’s remind_at/recurrence times. Implemented by the server over its
schedule store; the tool layer and background maintenance both talk to this
trait so neither ever sees the scheduler directly. Absent in embedded/test
setups (records still persist, reminders just don’t fire).
Required Methods§
Sourcefn sync_record_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 LedgerRecord,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn sync_record_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 LedgerRecord,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Make the managed schedules match the record’s current remind_at and
recurrence. Returns the full set of schedule ids the record now owns.
Sourcefn release_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn release_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Delete/disable managed schedules (the record went terminal or lost its times).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".