pub fn EngineViewport<P: WorkerProtocol + 'static>( props: EngineViewportProps<P>, ) -> impl IntoView
Renders the Viewport wired to engine: it translates ViewportEvents into worker messages, completes the connection on connect, and updates the engine state (and any application message handler) from messages the worker sends back.
Viewport
engine
ViewportEvent
state
Engine<P>