pub enum SetupRequest {
GetViewRefs {
responder: SetupGetViewRefsResponder,
},
WatchViewport {
responder: SetupWatchViewportResponder,
},
}
Expand description
A service used by an input pipeline to set up pointer injection into Scenic. This should be implemented by the component that configures the scene (Root Presenter or Scene Manager).
Variants§
GetViewRefs
Returns the viewrefs for injection authority (Config.context
) and injection
destination (Config.target
).
This only returns when valid context and target views exist. Typically called just once.
Fields
responder: SetupGetViewRefsResponder
WatchViewport
Returns the current viewport. Follows the hanging get pattern.
The first call to this function will return the current viewport, whenever one exists. Subsequent calls will block until the viewport has been updated.
Flow control: There should only be one outstanding call to this function. The channel will be closed if an additional call to this function is made while a call is outstanding.
Fields
responder: SetupWatchViewportResponder
Implementations§
Source§impl SetupRequest
impl SetupRequest
pub fn into_get_view_refs(self) -> Option<SetupGetViewRefsResponder>
pub fn into_watch_viewport(self) -> Option<SetupWatchViewportResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL