pub struct TestExecutorBuilder { /* private fields */ }
Expand description
A builder for TestExecutor
.
Implementations§
Source§impl TestExecutorBuilder
impl TestExecutorBuilder
Sourcepub fn fake_time(self, fake_time: bool) -> Self
pub fn fake_time(self, fake_time: bool) -> Self
Sets whether the executor should use fake time.
Sourcepub fn instrument(self, instrument: Arc<dyn TaskInstrument>) -> Self
pub fn instrument(self, instrument: Arc<dyn TaskInstrument>) -> Self
Sets the task instrumentation.
Sourcepub fn build(self) -> TestExecutor
pub fn build(self) -> TestExecutor
Builds the TestExecutor
, consuming this TestExecutorBuilder
.
Trait Implementations§
Source§impl Default for TestExecutorBuilder
impl Default for TestExecutorBuilder
Source§fn default() -> TestExecutorBuilder
fn default() -> TestExecutorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestExecutorBuilder
impl !RefUnwindSafe for TestExecutorBuilder
impl Send for TestExecutorBuilder
impl Sync for TestExecutorBuilder
impl Unpin for TestExecutorBuilder
impl !UnwindSafe for TestExecutorBuilder
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