pub trait SyncStateStore {
// Required methods
fn applied_migrations(&mut self) -> Result<Vec<AppliedMigration>>;
fn outbox_summaries(&mut self) -> Result<Vec<OutboxSummary>>;
fn conflict_summaries(&mut self) -> Result<Vec<ConflictSummary>>;
fn resolve_conflict(&mut self, id: &str, resolution: &str) -> Result<()>;
fn retry_conflict_keep_local(&mut self, id: &str) -> Result<String>;
// Provided methods
fn app_schema_state(
&mut self,
current_schema_version: i32,
) -> Result<AppSchemaState> { ... }
fn next_outbox_retry_at(&mut self) -> Result<Option<i64>> { ... }
fn next_blob_upload_retry_at(&mut self) -> Result<Option<i64>> { ... }
fn blob_health_summary(&mut self) -> Result<Option<BlobHealthSummary>> { ... }
fn crdt_health_summary(&mut self) -> Result<Option<CrdtHealthSummary>> { ... }
fn scoped_rows_health_summary(
&mut self,
_subscriptions: &[SubscriptionSpec],
) -> Result<Option<ScopedRowsHealthSummary>> { ... }
fn clear_orphaned_synced_rows(
&mut self,
_subscriptions: &[SubscriptionSpec],
_tables: &[String],
) -> Result<ScopedRowsHealthSummary> { ... }
}Required Methods§
fn applied_migrations(&mut self) -> Result<Vec<AppliedMigration>>
fn outbox_summaries(&mut self) -> Result<Vec<OutboxSummary>>
fn conflict_summaries(&mut self) -> Result<Vec<ConflictSummary>>
fn resolve_conflict(&mut self, id: &str, resolution: &str) -> Result<()>
fn retry_conflict_keep_local(&mut self, id: &str) -> Result<String>
Provided Methods§
fn app_schema_state( &mut self, current_schema_version: i32, ) -> Result<AppSchemaState>
fn next_outbox_retry_at(&mut self) -> Result<Option<i64>>
fn next_blob_upload_retry_at(&mut self) -> Result<Option<i64>>
fn blob_health_summary(&mut self) -> Result<Option<BlobHealthSummary>>
fn crdt_health_summary(&mut self) -> Result<Option<CrdtHealthSummary>>
fn scoped_rows_health_summary( &mut self, _subscriptions: &[SubscriptionSpec], ) -> Result<Option<ScopedRowsHealthSummary>>
fn clear_orphaned_synced_rows( &mut self, _subscriptions: &[SubscriptionSpec], _tables: &[String], ) -> Result<ScopedRowsHealthSummary>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".