Struct checkpoint::storage::FileStorage [] [src]

pub struct FileStorage { /* fields omitted */ }

Provides checkpoint storage via the file system.

Methods

impl FileStorage
[src]

[src]

Creates a FileStorage object around a new or existing file path and wraps the object in a GuardWrapper.

If path already exists it must point to a directory which contains two sub-folders, "committed" and "uncommitted".

Trait Implementations

impl Debug for FileStorage
[src]

[src]

Formats the value using the given formatter. Read more

impl Storage for FileStorage
[src]

The type representing committed checkpoints.

The type representing uncommitted checkpoints.

[src]

Creates a new checkpoint with the specified identifier.

The checkpoint will not be saved permanently until it has been committed via the commit_checkpoint method.

Note: The provided identifier must be a valid filename.

[src]

Commits an uncommitted checkpoint, permanently saving its data to the underlying storage medium. Read more

[src]

Loads the committed checkpoint associated with the provided identifier, allowing its data to be retrieved. Read more

[src]

Removes the committed checkpoint associated with the provided identifier. Read more

[src]

Returns a list of all committed checkpoint identifiers in the underlying storage medium.

Auto Trait Implementations

impl Send for FileStorage

impl Sync for FileStorage