#[non_exhaustive]pub struct Budget {
pub boot: Duration,
pub settle: Duration,
pub recovery: Duration,
pub stall: Duration,
}Expand description
How long a scenario waits on its environment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.boot: DurationFrom start until the server answers its first call.
settle: DurationFor a one-way effect to show: an event handled, a subscription in place.
recovery: DurationFrom disrupt until calls succeed again.
stall: DurationThe longest the scenario’s thread may go without polling a task that is due, while a link
binds and connects on a harness’s one thread: 50 ms unless with_stall
sets another. new leaves it at 50 ms whatever the other three are: a broker
slow to answer is waited on, not blocked on, so it gives the link no reason to stall the
thread, and a librdkafka handle’s drop, about 100 ms, has to fail it on the slowest broker.
Implementations§
Trait Implementations§
impl Copy for Budget
impl Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Forget for Budget
impl Freeze for Budget
impl Move for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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