pub enum ViewControllerRequest {
Dismiss {
control_handle: ViewControllerControlHandle,
},
}
Expand description
Gives clients of GraphicalPresenter
control over an individual view
presented through PresentView()
.
Variants§
Dismiss
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.
Fields
§
control_handle: ViewControllerControlHandle
Implementations§
Source§impl ViewControllerRequest
impl ViewControllerRequest
pub fn into_dismiss(self) -> Option<ViewControllerControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewControllerRequest
impl !RefUnwindSafe for ViewControllerRequest
impl Send for ViewControllerRequest
impl Sync for ViewControllerRequest
impl Unpin for ViewControllerRequest
impl !UnwindSafe for ViewControllerRequest
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
Mutably borrows from an owned value. Read more