Struct tauri_runtime_wry::Wry

source ·
pub struct Wry<T: UserEvent> { /* private fields */ }
Expand description

A Tauri Runtime wrapper around wry.

Implementations§

source§

impl<T: UserEvent> Wry<T>

source

pub fn plugin<P: PluginBuilder<T> + 'static>(&mut self, plugin: P)

Trait Implementations§

source§

impl<T: UserEvent> Debug for Wry<T>

source§

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

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

impl<T: UserEvent> Runtime<T> for Wry<T>

§

type Dispatcher = WryDispatcher<T>

The message dispatcher.
§

type Handle = WryHandle<T>

The runtime handle type.
§

type EventLoopProxy = EventProxy<T>

The proxy type.
source§

fn new() -> Result<Self>

Creates a new webview runtime. Must be used on the main thread.
source§

fn new_any_thread() -> Result<Self>

Creates a new webview runtime on any thread.
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 handle(&self) -> Self::Handle

Gets a runtime handle.
source§

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)

Change the device event filter mode. Read more
source§

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.
source§

fn run<F: FnMut(RunEvent<T>) + 'static>(self, callback: F)

Run the webview runtime.

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> 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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.
source§

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

source§

fn vzip(self) -> V