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

pub trait CopyFrom<D: Dir, T: Transaction<D>, Instance>: Persist<D, T> {
    #[must_use]
    fn copy_from<'async_trait>(
        instance: Instance,
        store: Self::Store,
        txn_id: TxnId
    ) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
    where
        Instance: 'async_trait,
        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: Instance,
    store: Self::Store,
    txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>> where
    Instance: 'async_trait,
    Self: 'async_trait, 
[src]

Expand description

Copy a new instance of Self from an existing instance.

Loading content...

Implementors

Loading content...