Struct grid_sdk::commits::store::memory::MemoryCommitStore [−][src]
pub struct MemoryCommitStore { /* fields omitted */ }
Expand description
Implementation of CommitStore that stores Commits in memory. Useful for when persistence isn’t necessary.
Implementations
Trait Implementations
Adds an commit to the underlying storage Read more
Resolves a fork Read more
fn get_commit_by_commit_num(
&self,
commit_num: i64
) -> Result<Option<Commit>, CommitStoreError>
fn get_commit_by_commit_num(
&self,
commit_num: i64
) -> Result<Option<Commit>, CommitStoreError>
Gets a commit from the underlying storage Read more
Gets the current commit ID from the underlying storage Read more
Gets the next commit number from the underlying storage Read more
fn create_db_commit_from_commit_event(
&self,
event: &CommitEvent
) -> Result<Option<Commit>, CommitEventError>
fn create_db_commit_from_commit_event(
&self,
event: &CommitEvent
) -> Result<Option<Commit>, CommitEventError>
Creates a commit model from a commit event Read more
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MemoryCommitStore
impl Send for MemoryCommitStore
impl Sync for MemoryCommitStore
impl Unpin for MemoryCommitStore
impl UnwindSafe for MemoryCommitStore
Blanket Implementations
Mutably borrows from an owned value. Read more