pub struct Schedule {
pub pace: Option<Pace>,
pub concurrency: usize,
}Expand description
When the steps run relative to one another.
The two fields are mutually exclusive in practice and the constructors say
so, because they exist for opposite reasons. Pace spreads a run out to
make it hard to recognise; overlapping compresses it into the smallest burst
the endpoint will tolerate. A caller who asked for both would be asking to be
unobtrusive quickly.
Fields§
§pace: Option<Pace>§concurrency: usizeSteps that may be in flight at once. 0 and 1 both mean sequential.
This is a step count, and steps are uneven — the capability battery is
a dozen requests and stop_sequence is one — so it does not bound how
much traffic reaches the endpoint. That bound is
Client::with_limit, and a caller
probing an endpoint it does not own wants both.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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