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