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§
Sourcefn 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 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.
Sourcefn is_enabled(&self) -> bool
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".