pub enum SuiteControllerRequest {
Stop {
control_handle: SuiteControllerControlHandle,
},
Kill {
control_handle: SuiteControllerControlHandle,
},
WatchEvents {
responder: SuiteControllerWatchEventsResponder,
},
GetEvents {
responder: SuiteControllerGetEventsResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: SuiteControllerControlHandle,
method_type: MethodType,
},
}
Expand description
Provides for control and monitoring of a running test suite started with SuiteRunner.RunSuite
.
The server closes its end of the channel after the suite run has finished and all events have
been delivered via WatchEvents
. If the client disconnects, the suite is terminated immediately
and all results discarded.
Variants§
Stop
Stop the suite run gracefully. SuiteController will disconnect after all resources are released and all the events in this controller are drained.
Fields
control_handle: SuiteControllerControlHandle
Kill
Immediately terminate the run. SuiteController will disconnect after all resources are released. This method will terminate tests even if they are in progress.
Fields
control_handle: SuiteControllerControlHandle
WatchEvents
Returns events when they’re available using a hanging get pattern. Returns an empty vector to indicate there will be no further events.
Fields
responder: SuiteControllerWatchEventsResponder
GetEvents
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).
Fields
responder: SuiteControllerGetEventsResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: SuiteControllerControlHandle
method_type: MethodType
Implementations§
Source§impl SuiteControllerRequest
impl SuiteControllerRequest
pub fn into_stop(self) -> Option<SuiteControllerControlHandle>
pub fn into_kill(self) -> Option<SuiteControllerControlHandle>
pub fn into_watch_events(self) -> Option<SuiteControllerWatchEventsResponder>
pub fn into_get_events(self) -> Option<SuiteControllerGetEventsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL