pub struct WaitConfig {
pub timeout: Duration,
pub poll_interval: Duration,
pub initial_delay: Duration,
pub cleanup: bool,
}Expand description
Configuration for polling helpers.
WaitConfig::default() yields a 30-second timeout, 500ms poll interval,
no initial delay, and cleanup enabled (for async-query helpers).
Fields§
§timeout: DurationMaximum total time before returning NifiError::Timeout.
poll_interval: DurationDelay between polls once the initial delay has elapsed.
initial_delay: DurationDelay before the first poll. Useful when a state transition is known to take a minimum amount of time.
cleanup: boolControls the trailing DELETE on async-query helpers. Honored by
parameter_context_update and provenance_query only; ignored by
processor_state and controller_service_state (which have no
server-side state to clean up). When true, the helper issues a
DELETE after the query resolves, regardless of success or failure,
and swallows any error from that DELETE so it cannot mask the poll
result.
Trait Implementations§
Source§impl Clone for WaitConfig
impl Clone for WaitConfig
Source§fn clone(&self) -> WaitConfig
fn clone(&self) -> WaitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more