Skip to main content

Module checkpoint

Module checkpoint 

Source
Expand description

Checkpoint system for periodic backups with pluggable storage backends

This module provides a trait-based checkpoint system that allows you to implement different storage backends (IPFS, S3, local filesystem, etc.)

§Example

use azoth::checkpoint::{CheckpointStorage, LocalStorage};
use azoth::prelude::*;
use std::path::PathBuf;

// Use local filesystem storage
let storage = LocalStorage::new(PathBuf::from("./checkpoints"));

// Or implement your own storage backend
// struct S3Storage { /* ... */ }
// impl CheckpointStorage for S3Storage { /* ... */ }

Structs§

CheckpointConfig
Configuration for checkpoint creation
CheckpointManager
Checkpoint manager for creating and restoring checkpoints
CheckpointMetadata
Metadata about a checkpoint
LocalStorage
Local filesystem storage backend

Traits§

CheckpointStorage
Trait for checkpoint storage backends