Struct tauri_runtime_wry::WryHandle
source · pub struct WryHandle<T: UserEvent> { /* private fields */ }
Expand description
A handle to the Wry runtime.
Implementations§
source§impl<T: UserEvent> WryHandle<T>
impl<T: UserEvent> WryHandle<T>
sourcepub fn create_tao_window<F: FnOnce() -> (String, WryWindowBuilder) + Send + 'static>(
&self,
f: F,
) -> Result<Weak<Window>>
pub fn create_tao_window<F: FnOnce() -> (String, WryWindowBuilder) + Send + 'static>( &self, f: F, ) -> Result<Weak<Window>>
Creates a new tao window using a callback, and returns its window id.
sourcepub fn window_id(&self, window_id: WindowId) -> WebviewId
pub fn window_id(&self, window_id: WindowId) -> WebviewId
Gets the [WebviewId'] associated with the given [
WindowId`].
sourcepub fn send_event(&self, message: Message<T>) -> Result<()>
pub fn send_event(&self, message: Message<T>) -> Result<()>
Send a message to the event loop.
Trait Implementations§
source§impl<T: UserEvent> RuntimeHandle<T> for WryHandle<T>
impl<T: UserEvent> RuntimeHandle<T> for WryHandle<T>
type Runtime = Wry<T>
source§fn create_proxy(&self) -> EventProxy<T>
fn create_proxy(&self) -> EventProxy<T>
Creates an
EventLoopProxy
that can be used to dispatch user events to the main event loop.source§fn create_window(
&self,
pending: PendingWindow<T, Self::Runtime>,
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window( &self, pending: PendingWindow<T, Self::Runtime>, ) -> Result<DetachedWindow<T, Self::Runtime>>
Create a new webview window.
source§fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
Run a task on the main thread.
fn raw_display_handle(&self) -> RawDisplayHandle
impl<T: UserEvent> Sync for WryHandle<T>
Auto Trait Implementations§
impl<T> Freeze for WryHandle<T>
impl<T> !RefUnwindSafe for WryHandle<T>
impl<T> Send for WryHandle<T>
impl<T> Unpin for WryHandle<T>where
T: Unpin,
impl<T> !UnwindSafe for WryHandle<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)