pub trait ChainInstance<State: StateInstance, T> {
// Required methods
fn append_delete(&self, txn_id: TxnId, key: Value) -> TCResult<()>;
fn append_put(
&self,
txn: State::Txn,
key: Value,
value: State,
) -> TCResult<()>;
fn subject(&self) -> &T;
}
Expand description
Methods common to any type of Chain
.
Required Methods§
Sourcefn append_delete(&self, txn_id: TxnId, key: Value) -> TCResult<()>
fn append_delete(&self, txn_id: TxnId, key: Value) -> TCResult<()>
Append the given DELETE op to the latest block in this Chain
.