Trait tinychain::chain::ChainInstance [−][src]
pub trait ChainInstance { #[must_use] fn append_delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn append_put<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn last_commit<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn subject(&self) -> &Subject; #[must_use] fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn write_ahead<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
Required methods
#[must_use]fn append_delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn append_delete<'life0, 'async_trait>(&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Expand description
Append the given DELETE op to the latest block in this Chain
.
#[must_use]fn append_put<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn append_put<'life0, 'async_trait>(&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Expand description
Append the given PUT op to the latest block in this Chain
.
#[must_use]fn last_commit<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn last_commit<'life0, 'async_trait>(&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subject(&self) -> &Subject
[src]
#[must_use]fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn replicate<'life0, 'life1, 'async_trait>(&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn write_ahead<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn write_ahead<'life0, 'life1, 'async_trait>(&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl ChainInstance for Chain
[src]
impl ChainInstance for Chain
[src]fn append_delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn append_put<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn last_commit<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subject(&self) -> &Subject
[src]
fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_ahead<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl ChainInstance for BlockChain
[src]
impl ChainInstance for BlockChain
[src]fn append_delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn append_put<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn last_commit<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subject(&self) -> &Subject
[src]
fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_ahead<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl ChainInstance for SyncChain
[src]
impl ChainInstance for SyncChain
[src]fn append_delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn append_put<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
path: TCPathBuf,
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn last_commit<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Option<TxnId>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subject(&self) -> &Subject
[src]
fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_ahead<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,