pub trait DataFeeder<Key, Value, AccountId> {
// Required method
fn feed_value(
who: Option<AccountId>,
key: Key,
value: Value,
) -> DispatchResult;
}Expand description
A trait for feeding data to a data provider.
Required Methods§
Sourcefn feed_value(who: Option<AccountId>, key: Key, value: Value) -> DispatchResult
fn feed_value(who: Option<AccountId>, key: Key, value: Value) -> DispatchResult
Feeds a new value for a given key.
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.