Struct tauri_runtime_wry::WryHandle
source · [−]pub struct WryHandle<T: UserEvent> { /* private fields */ }
Expand description
A handle to the Wry runtime.
Implementations
sourceimpl<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) -> u64
pub fn window_id(&self, window_id: WindowId) -> u64
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
sourceimpl<T: UserEvent> RuntimeHandle<T> for WryHandle<T>
impl<T: UserEvent> RuntimeHandle<T> for WryHandle<T>
type Runtime = Wry<T>
sourcefn 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.
sourcefn 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.
impl<T: UserEvent> Sync for WryHandle<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for WryHandle<T>
impl<T> Send for WryHandle<T>
impl<T> Unpin for WryHandle<T>
impl<T> !UnwindSafe for WryHandle<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more