Trait icu_provider::prelude::DataProvider
source · [−]pub trait DataProvider<M> where
M: DataMarker, {
fn load_payload(
&self,
req: &DataRequest
) -> Result<DataResponse<M>, DataError>;
}
Expand description
A generic data provider that loads a payload of a specific type.
See examples on some of the concrete implementations:
Required methods
fn load_payload(&self, req: &DataRequest) -> Result<DataResponse<M>, DataError>
fn load_payload(&self, req: &DataRequest) -> Result<DataResponse<M>, DataError>
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.