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>
pub fn watch_events(&self) -> QueryResponseFut<SuiteControllerWatchEventsResult>
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>
pub fn get_events(&self) -> QueryResponseFut<SuiteControllerGetEventsResult>
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
§type Protocol = SuiteControllerMarker
type Protocol = SuiteControllerMarker
Proxy
controls.