referrerpolicy=no-referrer-when-downgrade
pub trait RuntimeParameterStore {
    type AggregatedKeyValue: AggregatedKeyValue;

    // Required method
    fn get<KV, K>(key: K) -> Option<<K as Key>::Value>
       where KV: AggregatedKeyValue,
             K: Key + Into<<KV as AggregatedKeyValue>::Key>,
             <KV as AggregatedKeyValue>::Key: IntoKey<<Self::AggregatedKeyValue as AggregatedKeyValue>::Key>,
             <Self::AggregatedKeyValue as AggregatedKeyValue>::Value: TryIntoKey<<KV as AggregatedKeyValue>::Value>,
             <KV as AggregatedKeyValue>::Value: TryInto<<K as Key>::WrappedValue>;
}
Expand description

A dynamic parameter store across an aggregated KV type.

Required Associated Types§

Required Methods§

fn get<KV, K>(key: K) -> Option<<K as Key>::Value>

Get the value of a parametrized key.

Should return None if no explicit value was set instead of a default.

Object Safety§

This trait is not object safe.

Implementors§