pub struct WaitForBatchConfig {
pub initial_interval_secs: f64,
pub max_interval_secs: f64,
pub backoff_multiplier: f32,
pub timeout_secs: Option<f64>,
}Expand description
Configuration for polling a batch until terminal status.
All time values are in seconds as f64 so the struct bridges across FFI
boundaries without requiring a Duration shim.
Fields§
§initial_interval_secs: f64Initial interval between polls, in seconds.
max_interval_secs: f64Maximum interval between polls (backoff plateau), in seconds.
backoff_multiplier: f32Exponential backoff multiplier (e.g., 1.5 increases delay by 50% each poll).
timeout_secs: Option<f64>Optional timeout in seconds — polling fails if this duration is exceeded.
Trait Implementations§
Source§impl Clone for WaitForBatchConfig
impl Clone for WaitForBatchConfig
Source§impl Debug for WaitForBatchConfig
impl Debug for WaitForBatchConfig
Source§impl Default for WaitForBatchConfig
impl Default for WaitForBatchConfig
Source§impl<'de> Deserialize<'de> for WaitForBatchConfig
impl<'de> Deserialize<'de> for WaitForBatchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WaitForBatchConfig
impl RefUnwindSafe for WaitForBatchConfig
impl Send for WaitForBatchConfig
impl Sync for WaitForBatchConfig
impl Unpin for WaitForBatchConfig
impl UnsafeUnpin for WaitForBatchConfig
impl UnwindSafe for WaitForBatchConfig
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