pub struct GeneratorSource<T, F>{ /* private fields */ }Expand description
A source that generates test data
Implementations§
Source§impl<T, F> GeneratorSource<T, F>
impl<T, F> GeneratorSource<T, F>
Trait Implementations§
Source§impl<T, F> Source<T> for GeneratorSource<T, F>
impl<T, F> Source<T> for GeneratorSource<T, F>
Source§fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the source
Auto Trait Implementations§
impl<T, F> Freeze for GeneratorSource<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for GeneratorSource<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for GeneratorSource<T, F>where
T: Send,
impl<T, F> Sync for GeneratorSource<T, F>
impl<T, F> Unpin for GeneratorSource<T, F>
impl<T, F> UnwindSafe for GeneratorSource<T, F>where
F: UnwindSafe,
T: 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