pub struct RuntimeOptions {
pub handle_signals: bool,
pub max_records: usize,
pub poll_timeout: Duration,
pub idle_flush: Duration,
pub blocked_retry: Duration,
pub event_poll_timeout: Duration,
pub version: String,
}Expand description
Knobs that are not part of the user-facing YAML (loop granularities, test hooks). The defaults suit production; tests shrink the timings.
Fields§
§handle_signals: boolInstall SIGTERM/SIGINT handlers that trigger a graceful drain.
Disable in tests and drive ShutdownHandle instead.
max_records: usizeMax payloads per lane poll.
poll_timeout: DurationLane poll timeout (also the paused/idle loop sleep).
idle_flush: DurationFlush the chain after this long without new data.
blocked_retry: DurationSleep between retries of a blocked batch.
event_poll_timeout: DurationController poll_events timeout.
version: StringVersion string published on etl_pipeline_info.
Trait Implementations§
Source§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
Source§fn clone(&self) -> RuntimeOptions
fn clone(&self) -> RuntimeOptions
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 Debug for RuntimeOptions
impl Debug for RuntimeOptions
Source§impl Default for RuntimeOptions
impl Default for RuntimeOptions
Source§fn default() -> RuntimeOptions
fn default() -> RuntimeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnsafeUnpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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