pub struct TauriPlugin<R: Runtime, C: DeserializeOwned = ()> { /* private fields */ }
Expand description

Plugin struct that is returned by the Builder. Should only be constructed through the builder.

Trait Implementations

Executes the destructor for this type. Read more

The plugin name. Used as key on the plugin config object.

Initializes the plugin.

The JS script to evaluate on webview initialization. The script is wrapped into its own context with (function () { /* your script here */ })();, so global variables must be assigned to window instead of implicity declared. Read more

Callback invoked when the webview is created.

Callback invoked when the webview performs a navigation to a page.

Callback invoked when the event loop receives a new event.

Extend commands to crate::Builder::invoke_handler.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.