pub struct DataProviderWithMarker<M, P> { /* private fields */ }Expand description
A DataProvider associated with a specific marker.
Implements BoundDataProvider.
Implementations§
Source§impl<M, P> DataProviderWithMarker<M, P>where
M: DataMarker,
P: DataProvider<M>,
impl<M, P> DataProviderWithMarker<M, P>where
M: DataMarker,
P: DataProvider<M>,
Sourcepub const fn new(inner: P) -> Self
pub const fn new(inner: P) -> Self
Creates a DataProviderWithMarker from a DataProvider with a DataMarker.
Trait Implementations§
Source§impl<M, M0, Y, P> BoundDataProvider<M0> for DataProviderWithMarker<M, P>where
M: DataMarker<DataStruct = Y>,
M0: DynamicDataMarker<DataStruct = Y>,
Y: for<'a> Yokeable<'a>,
P: DataProvider<M>,
impl<M, M0, Y, P> BoundDataProvider<M0> for DataProviderWithMarker<M, P>where
M: DataMarker<DataStruct = Y>,
M0: DynamicDataMarker<DataStruct = Y>,
Y: for<'a> Yokeable<'a>,
P: DataProvider<M>,
Source§fn load_bound(
&self,
req: DataRequest<'_>,
) -> Result<DataResponse<M0>, DataError>
fn load_bound( &self, req: DataRequest<'_>, ) -> Result<DataResponse<M0>, DataError>
Query the provider for data, returning the result. Read more
Source§fn bound_marker(&self) -> DataMarkerInfo
fn bound_marker(&self) -> DataMarkerInfo
Returns the
DataMarkerInfo that this provider uses for loading data.