pub trait Snapshot {
// Required methods
fn snapshot(&self, snapshot_id: &str) -> bool;
fn restore(&self, snapshot_id: &str) -> bool;
fn list(&self) -> Result<Vec<String>>;
fn cleanup(&self, older_than_days: u32) -> Result<()>;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".