pub enum ConcurrencyStrategy {
Fixed(usize),
Dynamic(usize, usize),
}Expand description
Represents the concurrency strategy for processing requests.
Fixed: A fixed number of concurrent requests.Dynamic: Dynamically adjusts the concurrency based on response times.
Variants§
Trait Implementations§
Source§impl Clone for ConcurrencyStrategy
impl Clone for ConcurrencyStrategy
Source§fn clone(&self) -> ConcurrencyStrategy
fn clone(&self) -> ConcurrencyStrategy
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 ConcurrencyStrategy
impl Debug for ConcurrencyStrategy
impl Copy for ConcurrencyStrategy
Auto Trait Implementations§
impl Freeze for ConcurrencyStrategy
impl RefUnwindSafe for ConcurrencyStrategy
impl Send for ConcurrencyStrategy
impl Sync for ConcurrencyStrategy
impl Unpin for ConcurrencyStrategy
impl UnwindSafe for ConcurrencyStrategy
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