pub struct VersoRuntimeHandle<T: UserEvent> { /* private fields */ }
Expand description
A handle to the VersoRuntime
runtime.
Trait Implementations§
Source§impl<T: Clone + UserEvent> Clone for VersoRuntimeHandle<T>
impl<T: Clone + UserEvent> Clone for VersoRuntimeHandle<T>
Source§fn clone(&self) -> VersoRuntimeHandle<T>
fn clone(&self) -> VersoRuntimeHandle<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug + UserEvent> Debug for VersoRuntimeHandle<T>
impl<T: Debug + UserEvent> Debug for VersoRuntimeHandle<T>
Source§impl<T: UserEvent> RuntimeHandle<T> for VersoRuntimeHandle<T>
impl<T: UserEvent> RuntimeHandle<T> for VersoRuntimeHandle<T>
Source§fn set_activation_policy(
&self,
activation_policy: ActivationPolicy,
) -> Result<()>
fn set_activation_policy( &self, activation_policy: ActivationPolicy, ) -> Result<()>
Unsupported, has no effect
Source§fn set_dock_visibility(&self, visible: bool) -> Result<()>
fn set_dock_visibility(&self, visible: bool) -> Result<()>
Unsupported, has no effect
Source§fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>(
&self,
pending: PendingWindow<T, Self::Runtime>,
after_window_creation: Option<F>,
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>( &self, pending: PendingWindow<T, Self::Runtime>, after_window_creation: Option<F>, ) -> Result<DetachedWindow<T, Self::Runtime>>
after_window_creation
not supported
Only creating the window with a webview is supported,
will return [tauri_runtime::Error::CreateWindow
] if there is no [PendingWindow::webview
]
Source§fn create_webview(
&self,
window_id: WindowId,
pending: PendingWebview<T, Self::Runtime>,
) -> Result<DetachedWebview<T, Self::Runtime>>
fn create_webview( &self, window_id: WindowId, pending: PendingWebview<T, Self::Runtime>, ) -> Result<DetachedWebview<T, Self::Runtime>>
Unsupported, always fail with [tauri_runtime::Error::CreateWindow
]
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.
Source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Unsupported, will always return an error
Source§fn fetch_data_store_identifiers<F: FnOnce(Vec<[u8; 16]>) + Send + 'static>(
&self,
cb: F,
) -> Result<()>
fn fetch_data_store_identifiers<F: FnOnce(Vec<[u8; 16]>) + Send + 'static>( &self, cb: F, ) -> Result<()>
Unsupported, has no effect, the callback will not be called
Source§fn remove_data_store<F: FnOnce(Result<()>) + Send + 'static>(
&self,
uuid: [u8; 16],
cb: F,
) -> Result<()>
fn remove_data_store<F: FnOnce(Result<()>) + Send + 'static>( &self, uuid: [u8; 16], cb: F, ) -> Result<()>
Unsupported, has no effect, the callback will not be called
type Runtime = VersoRuntime<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 request_exit(&self, code: i32) -> Result<()>
fn request_exit(&self, code: i32) -> Result<()>
Requests an exit of the event loop.
Source§fn primary_monitor(&self) -> Option<Monitor>
fn primary_monitor(&self) -> Option<Monitor>
Returns the primary monitor of the system. Read more
Source§fn monitor_from_point(&self, x: f64, y: f64) -> Option<Monitor>
fn monitor_from_point(&self, x: f64, y: f64) -> Option<Monitor>
Returns the monitor that contains the given point.
Source§fn available_monitors(&self) -> Vec<Monitor>
fn available_monitors(&self) -> Vec<Monitor>
Returns the list of all the monitors available on the system.
Source§fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
Get the cursor position relative to the top-left hand corner of the desktop.
Auto Trait Implementations§
impl<T> Freeze for VersoRuntimeHandle<T>
impl<T> RefUnwindSafe for VersoRuntimeHandle<T>
impl<T> Send for VersoRuntimeHandle<T>
impl<T> Sync for VersoRuntimeHandle<T>
impl<T> Unpin for VersoRuntimeHandle<T>where
T: Unpin,
impl<T> UnwindSafe for VersoRuntimeHandle<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