Skip to main content

CheckpointExtension

Trait CheckpointExtension 

Source
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§

Source

fn namespace(&self) -> &str

Source

fn version(&self) -> &str

Source

fn required(&self) -> bool

Source

fn snapshot(&self) -> CheckpointResult<Value>

Source

fn restore(&self, state: &Value) -> CheckpointResult<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§