pub struct DynamicResponder<F> { /* private fields */ }Expand description
Closure adapter for ProviderFixtureBuilder.
Implementations§
Source§impl<F> DynamicResponder<F>
impl<F> DynamicResponder<F>
Trait Implementations§
Source§impl<'fixture, E, F> ProviderFixtureBuilder<'fixture> for DynamicResponder<F>where
F: for<'request> Fn(DynamicRequest<'request>) -> Result<&'fixture ResponseFixture<'fixture>, E>,
impl<'fixture, E, F> ProviderFixtureBuilder<'fixture> for DynamicResponder<F>where
F: for<'request> Fn(DynamicRequest<'request>) -> Result<&'fixture ResponseFixture<'fixture>, E>,
Source§fn build<'request>(
&self,
request: DynamicRequest<'request>,
) -> Result<&'fixture ResponseFixture<'fixture>, Self::Error>
fn build<'request>( &self, request: DynamicRequest<'request>, ) -> Result<&'fixture ResponseFixture<'fixture>, Self::Error>
Selects the response for one request without consuming scenario state.
Auto Trait Implementations§
impl<F> Freeze for DynamicResponder<F>where
F: Freeze,
impl<F> RefUnwindSafe for DynamicResponder<F>where
F: RefUnwindSafe,
impl<F> Send for DynamicResponder<F>where
F: Send,
impl<F> Sync for DynamicResponder<F>where
F: Sync,
impl<F> Unpin for DynamicResponder<F>where
F: Unpin,
impl<F> UnsafeUnpin for DynamicResponder<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for DynamicResponder<F>where
F: UnwindSafe,
Blanket Implementations§
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