pub struct CloneReplacePersianRugTableSource<F, T> { /* private fields */ }
Available on crate feature
wiremock
only.Expand description
Use a table from a persian_rug::Context
as a
RowSource
This RowSource
requires an
EndpointWithContext
to serve it. The RowSet
conveniently doubles as the
persian_rug::Accessor
object in this implementation as
required by
EndpointWithContext
.
Implementations§
Source§impl<C, F, U> CloneReplacePersianRugTableSource<F, C>where
F: Fn(&Arc<C>) -> TableIterator<'_, U> + Clone,
for<'a> &'a PersianRugTable<Arc<C>, F>: IntoIterator<Item = &'a U>,
impl<C, F, U> CloneReplacePersianRugTableSource<F, C>where
F: Fn(&Arc<C>) -> TableIterator<'_, U> + Clone,
for<'a> &'a PersianRugTable<Arc<C>, F>: IntoIterator<Item = &'a U>,
pub fn new(data: CloneReplace<C>, getter: F) -> Self
Trait Implementations§
Source§impl<C, F, U> RowSource for CloneReplacePersianRugTableSource<F, C>where
F: Fn(&Arc<C>) -> TableIterator<'_, U> + Clone,
for<'a> &'a PersianRugTable<Arc<C>, F>: IntoIterator<Item = &'a U>,
C: Context + Owner<U>,
U: Contextual<Context = C>,
impl<C, F, U> RowSource for CloneReplacePersianRugTableSource<F, C>where
F: Fn(&Arc<C>) -> TableIterator<'_, U> + Clone,
for<'a> &'a PersianRugTable<Arc<C>, F>: IntoIterator<Item = &'a U>,
C: Context + Owner<U>,
U: Contextual<Context = C>,
Auto Trait Implementations§
impl<F, T> Freeze for CloneReplacePersianRugTableSource<F, T>where
F: Freeze,
impl<F, T> RefUnwindSafe for CloneReplacePersianRugTableSource<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for CloneReplacePersianRugTableSource<F, T>
impl<F, T> Sync for CloneReplacePersianRugTableSource<F, T>
impl<F, T> Unpin for CloneReplacePersianRugTableSource<F, T>where
F: Unpin,
impl<F, T> UnwindSafe for CloneReplacePersianRugTableSource<F, T>where
F: UnwindSafe,
T: RefUnwindSafe,
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