pub enum RunControllerRequest {
Stop {
control_handle: RunControllerControlHandle,
},
Kill {
control_handle: RunControllerControlHandle,
},
GetEvents {
responder: RunControllerGetEventsResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: RunControllerControlHandle,
method_type: MethodType,
},
}
Expand description
The server end will disconnect after all the suite runs have finished and the events are drained. If the client disconnects, the tests will be terminated immediately and all results discarded.
Variants§
Stop
Stop the run gracefully. RunController will disconnect after all resources are released and all the events in this controller are drained. This method is used to allow the run to complete tests that are in progress, but will prevent starting new tests.
Fields
control_handle: RunControllerControlHandle
Kill
Immediately terminate the run. RunController will disconnect after all resources are released. This method will terminate tests even if they are in progress.
Fields
control_handle: RunControllerControlHandle
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: RunControllerGetEventsResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: RunControllerControlHandle
method_type: MethodType
Implementations§
Source§impl RunControllerRequest
impl RunControllerRequest
pub fn into_stop(self) -> Option<RunControllerControlHandle>
pub fn into_kill(self) -> Option<RunControllerControlHandle>
pub fn into_get_events(self) -> Option<RunControllerGetEventsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL