Struct DataProviderWithMarker

struct DataProviderWithMarker<M, P> { ... }

A DataProvider associated with a specific marker.

Implements BoundDataProvider.

Implementations

impl<M, P> DataProviderWithMarker<M, P>

const fn new(inner: P) -> Self

Creates a DataProviderWithMarker from a DataProvider with a DataMarker.

impl<M, M0, Y, P> BoundDataProvider for DataProviderWithMarker<M, P>

fn load_bound(self: &Self, req: DataRequest<'_>) -> Result<DataResponse<M0>, DataError>
fn bound_marker(self: &Self) -> DataMarkerInfo

impl<M, P> Freeze for DataProviderWithMarker<M, P>

impl<M, P> RefUnwindSafe for DataProviderWithMarker<M, P>

impl<M, P> Send for DataProviderWithMarker<M, P>

impl<M, P> Sync for DataProviderWithMarker<M, P>

impl<M, P> Unpin for DataProviderWithMarker<M, P>

impl<M, P> UnsafeUnpin for DataProviderWithMarker<M, P>

impl<M, P> UnwindSafe for DataProviderWithMarker<M, P>

impl<M: $crate::fmt::Debug, P: $crate::fmt::Debug> Debug for DataProviderWithMarker<M, P>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T> Any for DataProviderWithMarker<M, P>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DataProviderWithMarker<M, P>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for DataProviderWithMarker<M, P>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> ErasedDestructor for DataProviderWithMarker<M, P>

impl<T> From for DataProviderWithMarker<M, P>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for DataProviderWithMarker<M, P>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for DataProviderWithMarker<M, P>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for DataProviderWithMarker<M, P>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>