pub struct BurstProbe {
pub count: usize,
pub headers: Option<Vec<(String, String)>>,
}Fields§
§count: usize§headers: Option<Vec<(String, String)>>Implementations§
Source§impl BurstProbe
impl BurstProbe
pub fn new(count: usize, headers: Option<Vec<(String, String)>>) -> Self
Sourcepub async fn execute(
&self,
client: &HttpClient,
url: &str,
) -> Vec<Result<HttpResponse, CapturedError>>
pub async fn execute( &self, client: &HttpClient, url: &str, ) -> Vec<Result<HttpResponse, CapturedError>>
Execute concurrent burst requests.
Captures owned values inside the async closures (HttpClient clone + owned URL)
to keep this burst path robust even if execution strategy is refactored later.
Auto Trait Implementations§
impl Freeze for BurstProbe
impl RefUnwindSafe for BurstProbe
impl Send for BurstProbe
impl Sync for BurstProbe
impl Unpin for BurstProbe
impl UnsafeUnpin for BurstProbe
impl UnwindSafe for BurstProbe
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