pub trait CheckpointExtension: Send + Sync {
// Required methods
fn namespace(&self) -> &str;
fn version(&self) -> &str;
fn required(&self) -> bool;
fn snapshot(&self) -> CheckpointResult<Value>;
fn restore(&self, state: &Value) -> CheckpointResult<()>;
}Required Methods§
fn namespace(&self) -> &str
fn version(&self) -> &str
fn required(&self) -> bool
fn snapshot(&self) -> CheckpointResult<Value>
fn restore(&self, state: &Value) -> CheckpointResult<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".