Trait tinychain::chain::ChainInstance[][src]

pub trait ChainInstance {
#[must_use]    fn append<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txn_id: &'life1 TxnId,
        op_ref: OpRef
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn subject(&self) -> &Subject; }

Trait defining methods common to any instance of a Chain, such as a SyncChain.

Required methods

#[must_use]fn append<'life0, 'life1, 'async_trait>(
    &'life0 self,
    txn_id: &'life1 TxnId,
    op_ref: OpRef
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Append the given OpRef to the latest block in this Chain.

fn subject(&self) -> &Subject[src]

Borrow the Subject of this Chain immutably.

Loading content...

Implementors

impl ChainInstance for Chain[src]

impl ChainInstance for SyncChain[src]

Loading content...