pub trait DataCollection<DataId> {
    type Data;

    // Required method
    fn get(&self, data_id: &DataId) -> Result<Self::Data, DispatchError>;
}
Expand description

Abstration to represent a collection of data in memory

Required Associated Types§

source

type Data

Represents a data

Required Methods§

source

fn get(&self, data_id: &DataId) -> Result<Self::Data, DispatchError>

Return the last data value for a data id

Implementors§