referrerpolicy=no-referrer-when-downgrade

Trait DataProviderExtended

Source
pub trait DataProviderExtended<Key, TimestampedValue> {
    // Required method
    fn get_all_values() -> impl Iterator<Item = (Key, Option<TimestampedValue>)>;
}
Expand description

An extended DataProvider that provides timestamped data.

Required Methods§

Source

fn get_all_values() -> impl Iterator<Item = (Key, Option<TimestampedValue>)>

Returns a list of all keys and their optional timestamped values.

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>