Skip to main content

SnapshotAdmin

Trait SnapshotAdmin 

Source
pub trait SnapshotAdmin:
    Send
    + Sync
    + 'static {
    // Required methods
    fn save_snapshot(&self, path: &Path) -> Result<SnapshotMeta>;
    fn load_snapshot(&self, path: &Path) -> Result<SnapshotMeta>;
}
Expand description

Storage-agnostic admin surface for HTTP / binding callers that want to drive snapshot operations without naming the backend type parameter.

Database<S> picks up a blanket impl when S: Snapshotable + 'static. Transports (e.g. lora-server) type-erase on Arc<dyn SnapshotAdmin>.

Required Methods§

Implementors§