pub struct FixedLengthFileMocker { /* private fields */ }Expand description
The mocker struct for fixed-length files (.flf).
Implementations§
Source§impl FixedLengthFileMocker
impl FixedLengthFileMocker
Sourcepub fn builder() -> FixedLengthFileMockerBuilder
pub fn builder() -> FixedLengthFileMockerBuilder
Create a new instance of a FixedLengthFileMockerBuilder with default values.
Sourcepub fn try_mock(&mut self) -> Result<()>
pub fn try_mock(&mut self) -> Result<()>
Try and generate mocked data based on the provided FixedSchema.
This function either runs in single-threaded mode or in multithreaded mode depending on:
- the number of requested mocked rows to generate,
- and the number of avilable threads on the host system.
§Errors
This function will propagate any errors created in any of the mocking modes, see any
of the functions try_mock_multithreaded or try_mock_single_threaded for specifics.
Trait Implementations§
impl Mocker for FixedLengthFileMocker
Auto Trait Implementations§
impl Freeze for FixedLengthFileMocker
impl RefUnwindSafe for FixedLengthFileMocker
impl Send for FixedLengthFileMocker
impl Sync for FixedLengthFileMocker
impl Unpin for FixedLengthFileMocker
impl UnwindSafe for FixedLengthFileMocker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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