Trait tc_transact::fs::CopyFrom
source · [−]pub trait CopyFrom<D: Dir, I>: Persist<D> {
fn copy_from<'life0, 'async_trait>(
instance: I,
store: <Self as Persist<D>>::Store,
txn: &'life0 <Self as Persist<D>>::Txn
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Defines how to copy a base state from another instance, possibly a view.
Required Methods
Copy a new instance of Self
from an existing instance.