pub struct SuiteControllerProxy { /* private fields */ }
Implementations§
Source§impl SuiteControllerProxy
impl SuiteControllerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.test.manager/SuiteController.
Sourcepub fn take_event_stream(&self) -> SuiteControllerEventStream
pub fn take_event_stream(&self) -> SuiteControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn stop(&self) -> Result<(), Error>
pub fn stop(&self) -> Result<(), Error>
Stop the suite run gracefully. SuiteController will disconnect after all resources are released and all the events in this controller are drained.
Sourcepub fn kill(&self) -> Result<(), Error>
pub fn kill(&self) -> Result<(), Error>
Immediately terminate the run. SuiteController will disconnect after all resources are released. This method will terminate tests even if they are in progress.
Sourcepub fn watch_events(
&self,
) -> QueryResponseFut<SuiteControllerWatchEventsResult, DefaultFuchsiaResourceDialect>
pub fn watch_events( &self, ) -> QueryResponseFut<SuiteControllerWatchEventsResult, DefaultFuchsiaResourceDialect>
Returns events when they’re available using a hanging get pattern. Returns an empty vector to indicate there will be no further events.
Sourcepub fn get_events(
&self,
) -> QueryResponseFut<SuiteControllerGetEventsResult, DefaultFuchsiaResourceDialect>
pub fn get_events( &self, ) -> QueryResponseFut<SuiteControllerGetEventsResult, DefaultFuchsiaResourceDialect>
Iterator over events for the run. This method is a hanging get; it returns an empty vector only when there will be no further events (the run completed).
Trait Implementations§
Source§impl Clone for SuiteControllerProxy
impl Clone for SuiteControllerProxy
Source§fn clone(&self) -> SuiteControllerProxy
fn clone(&self) -> SuiteControllerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SuiteControllerProxy
impl Debug for SuiteControllerProxy
Source§impl Proxy for SuiteControllerProxy
impl Proxy for SuiteControllerProxy
Source§type Protocol = SuiteControllerMarker
type Protocol = SuiteControllerMarker
Proxy
controls.