pub trait DataFeeder<Key, Value, AccountId> {
// Required method
fn feed_value(
who: Option<AccountId>,
key: Key,
value: Value,
) -> Result<(), DispatchError>;
}
Expand description
Data provider with ability to provide data with no-op, and provide all data.
Required Methods§
Sourcefn feed_value(
who: Option<AccountId>,
key: Key,
value: Value,
) -> Result<(), DispatchError>
fn feed_value( who: Option<AccountId>, key: Key, value: Value, ) -> Result<(), DispatchError>
Provide a new value for a given key from an operator
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.