pub struct MultiFileRecovery;Expand description
Multi-file checkpoint recovery handler
Implementations§
Source§impl MultiFileRecovery
impl MultiFileRecovery
Sourcepub fn discover_checkpoints(base_path: &Path) -> CheckpointResult<Vec<PathBuf>>
pub fn discover_checkpoints(base_path: &Path) -> CheckpointResult<Vec<PathBuf>>
Discover all checkpoint manifests in a directory
Sourcepub fn load_manifest(path: &Path) -> CheckpointResult<CheckpointManifest>
pub fn load_manifest(path: &Path) -> CheckpointResult<CheckpointManifest>
Load a checkpoint manifest from file
Sourcepub fn validate_checkpoint(
manifest: &CheckpointManifest,
base_path: &Path,
) -> CheckpointResult<bool>
pub fn validate_checkpoint( manifest: &CheckpointManifest, base_path: &Path, ) -> CheckpointResult<bool>
Validate a checkpoint manifest and its segments
Sourcepub fn write_manifest(
manifest: &CheckpointManifest,
base_path: &Path,
) -> CheckpointResult<()>
pub fn write_manifest( manifest: &CheckpointManifest, base_path: &Path, ) -> CheckpointResult<()>
Write a manifest file
Sourcepub fn recover_checkpoint(
manifest: CheckpointManifest,
base_path: PathBuf,
) -> CheckpointResult<RecoveredCheckpoint>
pub fn recover_checkpoint( manifest: CheckpointManifest, base_path: PathBuf, ) -> CheckpointResult<RecoveredCheckpoint>
Recover a checkpoint from manifest, returning an iterator over the data
Auto Trait Implementations§
impl Freeze for MultiFileRecovery
impl RefUnwindSafe for MultiFileRecovery
impl Send for MultiFileRecovery
impl Sync for MultiFileRecovery
impl Unpin for MultiFileRecovery
impl UnwindSafe for MultiFileRecovery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more