Crate better_web_view

Source
Expand description

Latest Version

The library is a web-view modification and provides a better way of communication between the Rust backend and the JavaScript frontend.

For usage info please check out the example and the original repo.

Macros§

json
Construct a serde_json::Value from a JSON literal.

Structs§

Color
An RGBA color.
DialogBuilder
A builder for opening a new dialog window.
Handle
A thread-safe handle to a WebView instance. Used to dispatch closures onto its task queue.
Request
The type of an incoming javascript request
Response
A response to javascript
Router
The type for defining routes. The router determine which callback is executed when receives a javascript request. Accepts an interop key and a responding callback
WebView
An owned webview instance.
WebViewBuilder
Builder for constructing a WebView instance.

Enums§

Content
Content displayable inside a WebView.
Error
A WebView error.
Value
Represents any valid JSON value.

Traits§

CustomError

Functions§

builder
Constructs a new builder for a WebView.
escape
Escape a string to pass it into JavaScript.

Type Aliases§

WVResult
A WebView result.
OSZAR »