pub struct ViewControllerSynchronousProxy { /* private fields */ }
Implementations§
source§impl ViewControllerSynchronousProxy
impl ViewControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ViewControllerEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ViewControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn dismiss(&self) -> Result<(), Error>
pub fn dismiss(&self) -> Result<(), Error>
Instructs the presenter to dismiss the associated view. Once dismissed,
the ViewController
channel is closed with a ZX_OK
epitaph. At this
point, it is safe to clean up any resources (such as terminating
a component) backing the view.
Clients should call Dismiss()
prior to closing the ViewController
channel themselves.