Skip to main content

SuiteRunnerConnector

Trait SuiteRunnerConnector 

Source
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§

Source

fn connect( &self, ) -> impl Future<Output = Result<SuiteRunnerProxy, ConnectionError>> + Send

Create a new connection to SuiteRunner.

Source

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".

Implementors§