Skip to main content

GenericCheckpointer

Trait GenericCheckpointer 

Source
pub trait GenericCheckpointer: Send + Sync {
    // Required method
    fn save<T: State>(
        &self,
        thread_id: &str,
        state: &T,
        metadata: &CheckpointMetadata,
    ) -> Result<()>;
}
Expand description

Trait for generic checkpoint saving.

Required Methods§

Source

fn save<T: State>( &self, thread_id: &str, state: &T, metadata: &CheckpointMetadata, ) -> Result<()>

Save state and metadata for the given thread.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§