pub trait Replica {
// Required methods
fn state<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A state which supports replication in a [Cluster
]