Trait tauri_runtime::RuntimeHandle
source · [−]pub trait RuntimeHandle: Debug + Send + Sized + Clone + 'static {
type Runtime: Runtime<Handle = Self>;
fn create_window(
&self,
pending: PendingWindow<Self::Runtime>
) -> Result<DetachedWindow<Self::Runtime>>;
fn run_on_main_thread<F: FnOnce() + Send + 'static>(
&self,
f: F
) -> Result<()>;
}
Expand description
A Send
handle to the runtime.
Associated Types
Required methods
fn create_window(
&self,
pending: PendingWindow<Self::Runtime>
) -> Result<DetachedWindow<Self::Runtime>>
fn create_window(
&self,
pending: PendingWindow<Self::Runtime>
) -> Result<DetachedWindow<Self::Runtime>>
Create a new webview window.