pub struct RunBuilderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl RunBuilderSynchronousProxy
impl RunBuilderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RunBuilderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RunBuilderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn add_suite(
&self,
test_url: &str,
options: &RunOptions,
controller: ServerEnd<SuiteControllerMarker>,
) -> Result<(), Error>
pub fn add_suite( &self, test_url: &str, options: &RunOptions, controller: ServerEnd<SuiteControllerMarker>, ) -> Result<(), Error>
Add a suite to this run. A suite is a component that implements
fuchsia.test.Suite
. Implementors of this API will talk to test suites
using “Suite” protocol and return results using controller
. The
controller is also used to control the execution of the test suite.
Sourcepub fn add_suite_in_realm(
&self,
realm: ClientEnd<RealmMarker>,
offers: &[Offer],
test_collection: &str,
test_url: &str,
options: &RunOptions,
controller: ServerEnd<SuiteControllerMarker>,
) -> Result<(), Error>
pub fn add_suite_in_realm( &self, realm: ClientEnd<RealmMarker>, offers: &[Offer], test_collection: &str, test_url: &str, options: &RunOptions, controller: ServerEnd<SuiteControllerMarker>, ) -> Result<(), Error>
Add a suite to this run which would run in provided ‘realm’. A suite is
a component that implements fuchsia.test.Suite
. Implementors of this
API will talk to test suites using “Suite” protocol and return results
using controller
. The controller is also used to control the execution
of the test suite.
Sourcepub fn with_scheduling_options(
&self,
options: &SchedulingOptions,
) -> Result<(), Error>
pub fn with_scheduling_options( &self, options: &SchedulingOptions, ) -> Result<(), Error>
Specify scheduling options used for this run.
Sourcepub fn build(
&self,
controller: ServerEnd<RunControllerMarker>,
) -> Result<(), Error>
pub fn build( &self, controller: ServerEnd<RunControllerMarker>, ) -> Result<(), Error>
Build and schedule the run.
This runs all suites added with their respective filters and closes the channel once it is done.
Trait Implementations§
Source§impl Debug for RunBuilderSynchronousProxy
impl Debug for RunBuilderSynchronousProxy
Source§impl SynchronousProxy for RunBuilderSynchronousProxy
impl SynchronousProxy for RunBuilderSynchronousProxy
Source§type Proxy = RunBuilderProxy
type Proxy = RunBuilderProxy
Source§type Protocol = RunBuilderMarker
type Protocol = RunBuilderMarker
Proxy
controls.