Struct batch_loader::Loader [] [src]

pub struct Loader<B> where
    B: Backend
{ /* fields omitted */ }

Batched data loader interface

Loader is composed of the queue which associated to the backend.

Methods

impl<B> Loader<B> where
    B: Backend
[src]

[src]

Create new loader

concurrent sets the number of threads which runs the backend. new_backend will be called in spawning the new thread.

[src]

Load value by key

This function writes the key to the queue and returns a Future to wait the result.

Trait Implementations

impl<B: Clone> Clone for Loader<B> where
    B: Backend
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more