pub trait ValueProvider<Source, Key> {
    type Value;

    // Required method
    fn get(
        source: &Source,
        id: &Key
    ) -> Result<Option<Self::Value>, DispatchError>;
}

Required Associated Types§

Required Methods§

source

fn get(source: &Source, id: &Key) -> Result<Option<Self::Value>, DispatchError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Source, Key, Value> ValueProvider<Source, Key> for NoProvider<Value>

§

type Value = Value