Trait tc_transact::fs::CopyFrom

source ·
pub trait CopyFrom<D: Dir, I>: Persist<D> {
    fn copy_from<'life0, 'async_trait>(
        txn: &'life0 <Self as Persist<D>>::Txn,
        store: D::Store,
        instance: I
    ) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: '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.

Implementors§