pub struct AsyncConfig {
pub max_concurrent: usize,
pub timeout_ms: Option<u64>,
pub enable_retry: bool,
pub max_retries: usize,
pub backoff_ms: u64,
}Expand description
Configuration for async execution
Fields§
§max_concurrent: usizeMaximum number of concurrent executions
timeout_ms: Option<u64>Timeout for each execution (milliseconds)
enable_retry: boolEnable automatic retry on transient failures
max_retries: usizeMaximum number of retries
backoff_ms: u64Backoff strategy for retries
Implementations§
Source§impl AsyncConfig
impl AsyncConfig
Sourcepub fn with_max_concurrent(self, max: usize) -> Self
pub fn with_max_concurrent(self, max: usize) -> Self
Set maximum concurrent executions
Sourcepub fn with_timeout(self, timeout_ms: u64) -> Self
pub fn with_timeout(self, timeout_ms: u64) -> Self
Set timeout
Sourcepub fn with_retry(self, max_retries: usize, backoff_ms: u64) -> Self
pub fn with_retry(self, max_retries: usize, backoff_ms: u64) -> Self
Enable retry
Trait Implementations§
Source§impl Clone for AsyncConfig
impl Clone for AsyncConfig
Source§fn clone(&self) -> AsyncConfig
fn clone(&self) -> AsyncConfig
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 moreSource§impl Debug for AsyncConfig
impl Debug for AsyncConfig
Auto Trait Implementations§
impl Freeze for AsyncConfig
impl RefUnwindSafe for AsyncConfig
impl Send for AsyncConfig
impl Sync for AsyncConfig
impl Unpin for AsyncConfig
impl UnwindSafe for AsyncConfig
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