pub struct NetBenchInitiator;Expand description
Starts benchmark business flows on a caller-owned authenticated session.
Implementations§
Source§impl NetBenchInitiator
impl NetBenchInitiator
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an initiator which never dials or owns an endpoint/connection lifecycle.
Sourcepub async fn run(
&self,
flow: NetBenchFlow,
config: NetBenchConfig,
) -> Result<NetBenchReport>
pub async fn run( &self, flow: NetBenchFlow, config: NetBenchConfig, ) -> Result<NetBenchReport>
Runs a benchmark and returns only its final result.
§Errors
Returns a negotiation, measurement, timeout, cancellation, or peer error.
Sourcepub async fn run_probes(
&self,
flow: NetBenchFlow,
config: NetBenchProbeConfig,
) -> Result<NetBenchProbeReport>
pub async fn run_probes( &self, flow: NetBenchFlow, config: NetBenchProbeConfig, ) -> Result<NetBenchProbeReport>
Runs only the low-bandwidth latency and loss probes.
This does not open upload or download throughput streams and remains available when the peer denies bandwidth-saturating measurements.
§Errors
Returns a connection, negotiation, measurement, or peer error.
Sourcepub async fn start(
&self,
flow: NetBenchFlow,
config: NetBenchConfig,
) -> Result<NetBenchTest>
pub async fn start( &self, flow: NetBenchFlow, config: NetBenchConfig, ) -> Result<NetBenchTest>
Starts a benchmark and returns an event stream plus final result handle.
§Errors
This method currently only fails if the benchmark task cannot be initialized.
Trait Implementations§
Source§impl Clone for NetBenchInitiator
impl Clone for NetBenchInitiator
Source§fn clone(&self) -> NetBenchInitiator
fn clone(&self) -> NetBenchInitiator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetBenchInitiator
impl Debug for NetBenchInitiator
Auto Trait Implementations§
impl Freeze for NetBenchInitiator
impl RefUnwindSafe for NetBenchInitiator
impl Send for NetBenchInitiator
impl Sync for NetBenchInitiator
impl Unpin for NetBenchInitiator
impl UnsafeUnpin for NetBenchInitiator
impl UnwindSafe for NetBenchInitiator
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