pub trait SuiteRunnerConnector {
// Required methods
fn connect(
&self,
) -> impl Future<Output = Result<SuiteRunnerProxy, ConnectionError>> + Send;
fn batch_size(&self) -> usize;
}Expand description
Implementing this trait allows configuring the number of suites to run on a single SuiteRunner connection. This alleviates an issue where for n suites run on a single SuiteRunner connection, n channels must be opened up front. This can cause some issues with resource limitations when a large number of tests is specified (see https://fxbug.dev/42062444).
Required Methods§
Sourcefn connect(
&self,
) -> impl Future<Output = Result<SuiteRunnerProxy, ConnectionError>> + Send
fn connect( &self, ) -> impl Future<Output = Result<SuiteRunnerProxy, ConnectionError>> + Send
Create a new connection to SuiteRunner.
Sourcefn batch_size(&self) -> usize
fn batch_size(&self) -> usize
Number of suites for which a connection produced by this connector should be used.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".