Skip to main content

Module dynamic

Module dynamic 

Source
Expand description

Type-erased Runtime.

DynRuntime wraps any Runtime implementation behind trait objects so the concrete runtime can be selected by the application when building it, instead of being part of the generic parameters of every type that interacts with the runtime.

The concrete runtime is selected through DynRuntimeInitAttrs::new, which takes the RuntimeInitAttrs of the runtime to use (e.g. tauri_runtime_wry::Wry::default()). Runtime-specific APIs can still be reached by downcasting the wrappers (see DynRuntimeHandle::downcast_ref, DynWebviewDispatcher::downcast_ref, DynWindowDispatcher::downcast_ref and DynWebview::downcast_ref).

Structsยง

DynEventLoopProxy
The EventLoopProxy of DynRuntime.
DynRuntime
A type-erased Runtime.
DynRuntimeHandle
The RuntimeHandle of DynRuntime.
DynRuntimeInitAttrs
The RuntimeInitAttrs of DynRuntime.
DynWebview
The platform webview handle of the selected runtime, exposed through WebviewDispatch::with_webview.
DynWebviewAttributes
The runtime-specific webview attributes of the selected runtime, see Runtime::RuntimeWebviewAttributes.
DynWebviewDispatcher
The WebviewDispatch of DynRuntime.
DynWindowBuilder
A WindowBuilder for DynRuntime.
DynWindowDispatcher
The WindowDispatch of DynRuntime.
DynWindowOpener
Information about the webview that initiated a new window request, for the selected runtime.