pub trait ResourceProvider<M> where
    M: ResourceMarker
{ fn load_resource(
        &self,
        req: &DataRequest
    ) -> Result<DataResponse<M>, DataError>; }
Expand description

A data provider that loads data for a specific ResourceKey.

Required Methods

Query the provider for data, returning the result.

Returns Ok if the request successfully loaded data. If data failed to load, returns an Error with more information.

Implementors