pub struct RunBuilderProxy { /* private fields */ }
Implementations§
Source§impl RunBuilderProxy
impl RunBuilderProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.test.manager/RunBuilder.
Sourcepub fn take_event_stream(&self) -> RunBuilderEventStream
pub fn take_event_stream(&self) -> RunBuilderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for RunBuilderProxy
impl Clone for RunBuilderProxy
Source§fn clone(&self) -> RunBuilderProxy
fn clone(&self) -> RunBuilderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RunBuilderProxy
impl Debug for RunBuilderProxy
Source§impl Proxy for RunBuilderProxy
impl Proxy for RunBuilderProxy
Source§type Protocol = RunBuilderMarker
type Protocol = RunBuilderMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl RunBuilderProxyInterface for RunBuilderProxy
impl RunBuilderProxyInterface for RunBuilderProxy
fn add_suite( &self, test_url: &str, options: &RunOptions, controller: ServerEnd<SuiteControllerMarker>, ) -> Result<(), Error>
fn add_suite_in_realm( &self, realm: ClientEnd<RealmMarker>, offers: &[Offer], test_collection: &str, test_url: &str, options: &RunOptions, controller: ServerEnd<SuiteControllerMarker>, ) -> Result<(), Error>
fn with_scheduling_options( &self, options: &SchedulingOptions, ) -> Result<(), Error>
fn build(&self, controller: ServerEnd<RunControllerMarker>) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for RunBuilderProxy
impl !RefUnwindSafe for RunBuilderProxy
impl Send for RunBuilderProxy
impl Sync for RunBuilderProxy
impl Unpin for RunBuilderProxy
impl !UnwindSafe for RunBuilderProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)