Trait tc_transact::fs::CopyFrom[][src]

pub trait CopyFrom<D: Dir, I>: Persist<D> {
    #[must_use]
    fn copy_from<'async_trait>(
        instance: I,
        store: <Self as Persist<D>>::Store,
        txn: <Self as Persist<D>>::Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Defines how to copy a base state from another instance, possibly a view.

Required methods

#[must_use]
fn copy_from<'async_trait>(
    instance: I,
    store: <Self as Persist<D>>::Store,
    txn: <Self as Persist<D>>::Txn
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Copy a new instance of Self from an existing instance.

Implementors