pub struct Wry { /* private fields */ }
This is supported on crate feature
wry
only.Expand description
A Tauri Runtime
wrapper around wry.
Trait Implementations
sourceimpl Runtime for Wry
impl Runtime for Wry
type Dispatcher = WryDispatcher
type Dispatcher = WryDispatcher
The message dispatcher.
type GlobalShortcutManager = GlobalShortcutManagerHandle
type GlobalShortcutManager = GlobalShortcutManagerHandle
The global shortcut manager type.
type ClipboardManager = ClipboardManagerWrapper
type ClipboardManager = ClipboardManagerWrapper
The clipboard manager type.
type TrayHandler = SystemTrayHandle
type TrayHandler = SystemTrayHandle
The tray handler type.
sourcefn new_any_thread() -> Result<Wry, Error>
fn new_any_thread() -> Result<Wry, Error>
Creates a new webview runtime on any thread.
sourcefn global_shortcut_manager(&self) -> <Wry as Runtime>::GlobalShortcutManager
fn global_shortcut_manager(&self) -> <Wry as Runtime>::GlobalShortcutManager
Gets the global shortcut manager.
sourcefn clipboard_manager(&self) -> <Wry as Runtime>::ClipboardManager
fn clipboard_manager(&self) -> <Wry as Runtime>::ClipboardManager
Gets the clipboard manager.
sourcefn create_window(
&self,
pending: PendingWindow<Wry>
) -> Result<DetachedWindow<Wry>, Error>
fn create_window(
&self,
pending: PendingWindow<Wry>
) -> Result<DetachedWindow<Wry>, Error>
Create a new webview window.
sourcefn system_tray(
&self,
system_tray: SystemTray
) -> Result<<Wry as Runtime>::TrayHandler, Error>
fn system_tray(
&self,
system_tray: SystemTray
) -> Result<<Wry as Runtime>::TrayHandler, Error>
Adds the icon to the system tray with the specified menu items.
sourcefn on_system_tray_event<F>(&mut self, f: F) -> Uuid where
F: 'static + Fn(&SystemTrayEvent) + Send,
fn on_system_tray_event<F>(&mut self, f: F) -> Uuid where
F: 'static + Fn(&SystemTrayEvent) + Send,
Registers a system tray event handler.
sourcefn run_iteration<F>(&mut self, callback: F) -> RunIteration where
F: 'static + FnMut(RunEvent),
fn run_iteration<F>(&mut self, callback: F) -> RunIteration where
F: 'static + FnMut(RunEvent),
Runs the one step of the webview runtime event loop and returns control flow to the caller.
Auto Trait Implementations
impl !RefUnwindSafe for Wry
impl !Send for Wry
impl !Sync for Wry
impl Unpin for Wry
impl !UnwindSafe for Wry
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