pub struct RunStreamOptions {
pub state_store: Option<Arc<dyn StateStore>>,
pub state_key: Option<String>,
pub pipeline_name: Option<String>,
pub row: Option<String>,
pub run_id: Option<String>,
pub dlq: Option<DlqConfig>,
pub quality: Option<Arc<CompiledQuality>>,
pub adaptive: Option<AdaptiveBatchConfig>,
pub cancel: Option<CancellationToken>,
}Fields§
§state_store: Option<Arc<dyn StateStore>>§state_key: Option<String>§pipeline_name: Option<String>§row: Option<String>§run_id: Option<String>§dlq: Option<DlqConfig>§quality: Option<Arc<CompiledQuality>>Available on crate feature
§quality only.adaptive: Option<AdaptiveBatchConfig>Adaptive batch-size controller config; None (or enabled = false)
leaves the per-page write path unchanged.
cancel: Option<CancellationToken>Cooperative cancellation. When set and cancelled mid-run, the streaming loop stops polling new pages, flushes the sinks (so a buffered sink like Parquet writes its footer / completes its upload rather than orphaning the file), and returns the partial result. Without this, a dropped run future loses everything written-but-unflushed (#146 H16).
Implementations§
Source§impl RunStreamOptions
impl RunStreamOptions
pub fn new() -> Self
pub fn with_state( self, store: Arc<dyn StateStore>, key: impl Into<String>, ) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_row(self, row: impl Into<String>) -> Self
pub fn with_run_id(self, id: impl Into<String>) -> Self
pub fn with_dlq(self, dlq: DlqConfig) -> Self
Sourcepub fn with_cancel(self, cancel: CancellationToken) -> Self
pub fn with_cancel(self, cancel: CancellationToken) -> Self
Attach a cancellation token for cooperative, flush-completing cancel.
Sourcepub fn with_adaptive(self, cfg: AdaptiveBatchConfig) -> Self
pub fn with_adaptive(self, cfg: AdaptiveBatchConfig) -> Self
Attach an adaptive batch-size controller config.
pub fn with_quality(self, quality: Arc<CompiledQuality>) -> Self
Available on crate feature
quality only.Trait Implementations§
Source§impl Clone for RunStreamOptions
impl Clone for RunStreamOptions
Source§fn clone(&self) -> RunStreamOptions
fn clone(&self) -> RunStreamOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RunStreamOptions
impl Default for RunStreamOptions
Source§fn default() -> RunStreamOptions
fn default() -> RunStreamOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunStreamOptions
impl !RefUnwindSafe for RunStreamOptions
impl Send for RunStreamOptions
impl Sync for RunStreamOptions
impl Unpin for RunStreamOptions
impl UnsafeUnpin for RunStreamOptions
impl !UnwindSafe for RunStreamOptions
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