pub fn run_app_with_proxy<P, A, O>(
config: WindowConfig,
presenter: P,
app: A,
on_proxy: O,
) -> Result<(), EventLoopError>Expand description
Same as run_app, but also hands on_proxy an EventProxy for injecting cross-thread
events.
See run_windowed_with_proxy for when/why to use the _with_proxy variant over the plain
one. The injected payload is always a u64, delivered as Event::Custom; see
run_app_with_typed_proxy for injecting any T: Send + 'static.
See https://main.retroglyph.dev/book/explanation/architecture.html#presenting-is-automatic: this function shares the same automatic-present behavior.
ยงErrors
Returns EventLoopError if the event loop cannot be
created or fails while running.