pub trait Replicate<Txn>: Send + Sync {
// Required method
fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link,
) -> Pin<Box<dyn Future<Output = TCResult<Output<Sha256>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait to define synchronization of a mutable state
Required Methods§
Sourcefn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link,
) -> Pin<Box<dyn Future<Output = TCResult<Output<Sha256>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn replicate<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Txn,
source: Link,
) -> Pin<Box<dyn Future<Output = TCResult<Output<Sha256>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update the state of this replica from the given source
.