Trait batch_loader::Value [] [src]

pub trait Value: Debug + Clone + Send {
    type Key: Ord + Clone + Send + 'static;
    fn key(&self) -> &Self::Key;
}

Trait for values which is identifiable by unique Key

Values must be cloneable because a single value will be cloned to the respective multiple callers if some callers request by the same key.

Associated Types

Key is used to route the values to the caller.

Required Methods

Returns a Key

Implementors