pub struct HttpBenchmark { /* private fields */ }Expand description
HTTP客户端基准测试器
Implementations§
Source§impl HttpBenchmark
impl HttpBenchmark
Sourcepub fn new(client: Client, config: BenchmarkConfig) -> Self
pub fn new(client: Client, config: BenchmarkConfig) -> Self
创建新的基准测试器
Sourcepub async fn run_benchmark(
&self,
) -> Result<PerformanceMetrics, Box<dyn Error + Send + Sync>>
pub async fn run_benchmark( &self, ) -> Result<PerformanceMetrics, Box<dyn Error + Send + Sync>>
执行基准测试
Auto Trait Implementations§
impl Freeze for HttpBenchmark
impl !RefUnwindSafe for HttpBenchmark
impl Send for HttpBenchmark
impl Sync for HttpBenchmark
impl Unpin for HttpBenchmark
impl !UnwindSafe for HttpBenchmark
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