pub trait Load {
    // Required method
    fn load(
        &mut self,
        pool: Pool<AEADReader>,
        transaction_list: Vec<(CommitId, String, Stream)>
    );
}
Expand description

Load all data from the index field into memory.

This trait is usually implemented on a type that also implements Strategy, and not on the field directly.

In addition, Load has a blanket implementation for all types that implement Query, so very likely you never have to manually implement this yourself.

Required Methods§

source

fn load( &mut self, pool: Pool<AEADReader>, transaction_list: Vec<(CommitId, String, Stream)> )

Execute a load action.

The index and object readers are provided to interact with the indexes and the object pool, respectively.

transaction_list can contain any list of transactions that this loader should restore into memory.

Note that this is decidedly not a type safe way to interact with a collection, and therefore it is recommended that transaction_list is prepared and sanitized for the field that’s being restored.

Implementors§

source§

impl<K, T> Load for Twhere T: Query<Key = K>,

source§

impl<T> Load for LocalField<Serialized<T>>where T: DeserializeOwned,