GitFossilStore

Trait GitFossilStore 

Source
pub trait GitFossilStore {
    // Required methods
    fn commit_snapshot(&self, snapshot: &Snapshot) -> Result<()>;
    fn get_latest_snapshot(&self) -> Result<Option<Snapshot>>;
}
Expand description

Abstraction describing how snapshots are persisted and retrieved.

Required Methods§

Source

fn commit_snapshot(&self, snapshot: &Snapshot) -> Result<()>

Persist the provided snapshot into the fossil store.

Source

fn get_latest_snapshot(&self) -> Result<Option<Snapshot>>

Retrieve the latest snapshot if one exists.

Implementors§