pub trait RuntimeInitAttrs<T: UserEvent>:
Default
+ Send
+ Sync
+ 'static {
type Runtime: Runtime<T, RuntimeInitAttrs = Self>;
// Provided method
fn apply_config(&mut self, _config: &Config) -> Result<()> { ... }
}Expand description
Runtime-specific initialization attributes.
Every Runtime defines its own attributes type. That type is also what selects the runtime
when the application uses the type-erased dynamic::DynRuntime: passing the attributes
(e.g. tauri_runtime_wry::Wry::default() or tauri_runtime_cef::Cef::default()) to
tauri::Builder::runtime picks the runtime they belong to.
For that to work, runtime crates also implement From<Self> for dynamic::DynRuntimeInitAttrs
(wrapping the attributes with dynamic::DynRuntimeInitAttrs::new).
Required Associated Types§
Provided Methods§
Sourcefn apply_config(&mut self, _config: &Config) -> Result<()>
fn apply_config(&mut self, _config: &Config) -> Result<()>
Applies attributes derived from the application configuration.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".