lance_table::io::commit

Trait CommitLease

Source
pub trait CommitLease: Send + Sync {
    // Required method
    fn release<'life0, 'async_trait>(
        &'life0 self,
        success: bool,
    ) -> Pin<Box<dyn Future<Output = Result<(), CommitError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn release<'life0, 'async_trait>( &'life0 self, success: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommitError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return the lease, indicating whether the commit was successful.

Implementors§