Trait fixity::core::fixity::Commit[][src]

pub trait Commit {
    #[must_use]
    fn commit<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Addr, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

A trait to describe a T that can write a new commit log to storage, and update the workspace pointer to the newly writen commit log.

This trait is usually implemented on core Fixity interfaces, such as Map and Bytes, along with Fixity itself.

Required methods

#[must_use]
fn commit<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Addr, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Commit any staged changes to storage, and update the workspace pointer to match.

Loading content...

Implementors

impl<T> Commit for T where
    T: AsWorkspaceRef + AsCacheRef + Sync
[src]

Loading content...