Trait icu_provider::prelude::DataProvider[][src]

pub trait DataProvider<'data, M> where
    M: DataMarker<'data>, 
{ fn load_payload(
        &self,
        req: &DataRequest
    ) -> Result<DataResponse<'data, M>, Error>; }
Expand description

A generic data provider that loads a payload of a specific type.

See examples on some of the concrete implementations:

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