Trait RunBuilderConnector

Source
pub trait RunBuilderConnector {
    // Required methods
    fn connect<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<RunBuilderProxy, ConnectionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_size(&self) -> usize;
}
Expand description

Implementing this trait allows configuring the number of suites to run on a single RunBuilder connection. This alleviates an issue where for n suites run on a single RunBuilder 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<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<RunBuilderProxy, ConnectionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new connection to RunBuilder.

Source

fn batch_size(&self) -> usize

Number of suites for which a connection produced by this connector should be used.

Implementors§