Skip to main content

MemoryGit

Trait MemoryGit 

Source
pub trait MemoryGit: Send + Sync {
    // Required methods
    fn commit_file<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        message: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn is_enabled(&self) -> bool;
}
Expand description

Optional git-backed durability for memory entries.

Required Methods§

Source

fn commit_file<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, path: &'life1 str, message: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Commit a file to git.

Source

fn is_enabled(&self) -> bool

Whether git integration is enabled.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§