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.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 SuiteControllerProxyInterface for SuiteControllerProxy
impl SuiteControllerProxyInterface for SuiteControllerProxy
type WatchEventsResponseFut = QueryResponseFut<Result<Vec<Event>, LaunchError>>
type GetEventsResponseFut = QueryResponseFut<Result<Vec<SuiteEvent>, LaunchError>>
fn stop(&self) -> Result<(), Error>
fn kill(&self) -> Result<(), Error>
fn watch_events(&self) -> Self::WatchEventsResponseFut
fn get_events(&self) -> Self::GetEventsResponseFut
Auto Trait Implementations§
impl Freeze for SuiteControllerProxy
impl !RefUnwindSafe for SuiteControllerProxy
impl Send for SuiteControllerProxy
impl Sync for SuiteControllerProxy
impl Unpin for SuiteControllerProxy
impl !UnwindSafe for SuiteControllerProxy
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
)