pub struct AsyncSchedulerConfigBuilder { /* private fields */ }
Expand description
Builder for AsyncSchedulerConfig
.
Implementations§
Source§impl AsyncSchedulerConfigBuilder
impl AsyncSchedulerConfigBuilder
Sourcepub fn max_parallelism<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn max_parallelism<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
Maximum concurrency (thread pool size / parallel tasks).
Sourcepub fn batching_strategy<VALUE: Into<BatchingStrategy>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn batching_strategy<VALUE: Into<BatchingStrategy>>( &mut self, value: VALUE, ) -> &mut Self
Determines wave-chunk scheduling vs. immediate node scheduling.
Sourcepub fn enable_streaming<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enable_streaming<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, we will spawn a channel to stream each node’s outputs.
Sourcepub fn checkpoint_callback<VALUE: Into<Option<Arc<dyn CheckpointCallback>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn checkpoint_callback<VALUE: Into<Option<Arc<dyn CheckpointCallback>>>>( &mut self, value: VALUE, ) -> &mut Self
If present, invoked after each node completes to record progress.
Sourcepub fn build(
&self,
) -> Result<AsyncSchedulerConfig, AsyncSchedulerConfigBuilderError>
pub fn build( &self, ) -> Result<AsyncSchedulerConfig, AsyncSchedulerConfigBuilderError>
Trait Implementations§
Source§impl Clone for AsyncSchedulerConfigBuilder
impl Clone for AsyncSchedulerConfigBuilder
Source§fn clone(&self) -> AsyncSchedulerConfigBuilder
fn clone(&self) -> AsyncSchedulerConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AsyncSchedulerConfigBuilder
impl !RefUnwindSafe for AsyncSchedulerConfigBuilder
impl Send for AsyncSchedulerConfigBuilder
impl Sync for AsyncSchedulerConfigBuilder
impl Unpin for AsyncSchedulerConfigBuilder
impl !UnwindSafe for AsyncSchedulerConfigBuilder
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