Trait DataProviderExtended

Source
pub trait DataProviderExtended<Key, TimestampedValue> {
    // Required methods
    fn get_no_op(key: &Key) -> Option<TimestampedValue>;
    fn get_all_values() -> Vec<(Key, Option<TimestampedValue>)>;
}
Expand description

Extended data provider to provide timestamped data by key with no-op, and all data.

Required Methods§

Source

fn get_no_op(key: &Key) -> Option<TimestampedValue>

Get timestamped value by key

Source

fn get_all_values() -> Vec<(Key, Option<TimestampedValue>)>

Provide a list of tuples of key and timestamped value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Config<I>, I: 'static> DataProviderExtended<<T as Config<I>>::OracleKey, TimestampedValue<<T as Config<I>>::OracleValue, <<T as Config<I>>::Time as Time>::Moment>> for Pallet<T, I>