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§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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more