Trait DataStore

Source
pub trait DataStore<M: DataMarker>: Sealed {
    type IterReturn: Iterator<Item = DataIdentifierCow<'static>>;

    // Required methods
    fn get(
        &self,
        req: DataIdentifierBorrowed<'_>,
        attributes_prefix_match: bool,
    ) -> Option<DataPayload<M>>;
    fn iter(&'static self) -> Self::IterReturn;
}
Expand description

A backing store for baked data

Required Associated Types§

Source

type IterReturn: Iterator<Item = DataIdentifierCow<'static>>

The type returned by the iterator

Required Methods§

Source

fn get( &self, req: DataIdentifierBorrowed<'_>, attributes_prefix_match: bool, ) -> Option<DataPayload<M>>

Get the value for a key

Source

fn iter(&'static self) -> Self::IterReturn

Iterate over all data

Implementors§