Struct VersoRuntimeHandle

Source
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>

Source§

fn clone(&self) -> VersoRuntimeHandle<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + UserEvent> Debug for VersoRuntimeHandle<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: UserEvent> RuntimeHandle<T> for VersoRuntimeHandle<T>

Source§

fn set_activation_policy( &self, activation_policy: ActivationPolicy, ) -> Result<()>

Unsupported, has no effect

Source§

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>>

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>>

Unsupported, always fail with [tauri_runtime::Error::CreateWindow]

Source§

fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>

Run a task on the main thread.

Source§

fn show(&self) -> Result<()>

Unsupported, has no effect

Source§

fn hide(&self) -> Result<()>

Unsupported, has no effect

Source§

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<()>

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<()>

Unsupported, has no effect, the callback will not be called

Source§

type Runtime = VersoRuntime<T>

Source§

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<()>

Requests an exit of the event loop.
Source§

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>

Returns the monitor that contains the given point.
Source§

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>>

Get the cursor position relative to the top-left hand corner of the desktop.
Source§

fn set_theme(&self, theme: Option<Theme>)

Sets the app theme.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<R> RuntimeHandle for R
where R: RuntimeHandle<EventLoopMessage>,

§

impl<T> UserEvent for T
where T: Debug + Clone + Send + 'static,