Struct tauri_runtime_wry::Wry
source · pub struct Wry<T: UserEvent> { /* private fields */ }
Expand description
A Tauri Runtime
wrapper around wry.
Implementations§
Trait Implementations§
source§impl<T: UserEvent> Runtime<T> for Wry<T>
impl<T: UserEvent> Runtime<T> for Wry<T>
§type Dispatcher = WryDispatcher<T>
type Dispatcher = WryDispatcher<T>
The message dispatcher.
§type EventLoopProxy = EventProxy<T>
type EventLoopProxy = EventProxy<T>
The proxy type.
source§fn new_any_thread() -> Result<Self>
fn new_any_thread() -> Result<Self>
Creates a new webview runtime on any thread.
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>,
) -> Result<DetachedWindow<T, Self>>
fn create_window( &self, pending: PendingWindow<T, Self>, ) -> Result<DetachedWindow<T, Self>>
Create a new webview window.
source§fn set_device_event_filter(&mut self, filter: DeviceEventFilter)
fn set_device_event_filter(&mut self, filter: DeviceEventFilter)
Change the device event filter mode. Read more
source§fn run_iteration<F: FnMut(RunEvent<T>) + 'static>(
&mut self,
callback: F,
) -> RunIteration
fn run_iteration<F: FnMut(RunEvent<T>) + 'static>( &mut self, callback: F, ) -> RunIteration
Runs the one step of the webview runtime event loop and returns control flow to the caller.
Auto Trait Implementations§
impl<T> !Freeze for Wry<T>
impl<T> !RefUnwindSafe for Wry<T>
impl<T> !Send for Wry<T>
impl<T> !Sync for Wry<T>
impl<T> Unpin for Wry<T>where
T: Unpin,
impl<T> !UnwindSafe for Wry<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