pub struct DynamicDataProviderAnyMarkerWrap<'a, P: ?Sized>(pub &'a P);
Expand description
A wrapper over DynamicDataProvider<AnyMarker>
that implements AnyProvider
Tuple Fields§
§0: &'a P
Trait Implementations§
source§impl<P> AnyProvider for DynamicDataProviderAnyMarkerWrap<'_, P>
impl<P> AnyProvider for DynamicDataProviderAnyMarkerWrap<'_, P>
source§fn load_any(
&self,
marker: DataMarkerInfo,
req: DataRequest<'_>,
) -> Result<AnyResponse, DataError>
fn load_any( &self, marker: DataMarkerInfo, req: DataRequest<'_>, ) -> Result<AnyResponse, DataError>
Loads an
AnyPayload
according to the marker and request.Auto Trait Implementations§
impl<'a, P> Freeze for DynamicDataProviderAnyMarkerWrap<'a, P>where
P: ?Sized,
impl<'a, P> RefUnwindSafe for DynamicDataProviderAnyMarkerWrap<'a, P>where
P: RefUnwindSafe + ?Sized,
impl<'a, P> Send for DynamicDataProviderAnyMarkerWrap<'a, P>
impl<'a, P> Sync for DynamicDataProviderAnyMarkerWrap<'a, P>
impl<'a, P> Unpin for DynamicDataProviderAnyMarkerWrap<'a, P>where
P: ?Sized,
impl<'a, P> UnwindSafe for DynamicDataProviderAnyMarkerWrap<'a, P>where
P: RefUnwindSafe + ?Sized,
Blanket Implementations§
source§impl<P> AsDowncastingAnyProvider for Pwhere
P: AnyProvider + ?Sized,
impl<P> AsDowncastingAnyProvider for Pwhere
P: AnyProvider + ?Sized,
source§fn as_downcasting(&self) -> DowncastingAnyProvider<'_, P>
fn as_downcasting(&self) -> DowncastingAnyProvider<'_, P>
Returns an object implementing
DynamicDataProvider<M>
when called on AnyProvider
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more