Docs.rs
  • tauri-runtime-2.1.1
    • tauri-runtime 2.1.1
    • Docs.rs crate page
    • Apache-2.0 OR MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • tauri-bot
    • Dependencies
      • dpi ^0.1 normal
      • http ^1.1 normal
      • raw-window-handle ^0.6 normal
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • tauri-utils ^2.0.2 normal
      • thiserror ^1.0 normal
      • url ^2 normal
      • gtk ^0.18 normal
      • jni ^0.21 normal
      • url ^2 normal
      • windows ^0.58 normal
    • Versions
    • 77.69% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-apple-darwin
    • x86_64-apple-ios
    • x86_64-linux-android
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate tauri_runtime

logo

tauri_runtime2.1.1

  • All Items

Crate Items

  • Re-exports
  • Modules
  • Structs
  • Enums
  • Traits
  • Type Aliases

Crates

  • tauri_runtime

Crate tauri_runtime

source
Expand description

Internal runtime between Tauri and the underlying webview runtime.

None of the exposed API of this crate is stable, and it may break semver compatibility in the future. The major version only signifies the intended Tauri version.

Re-exports§

  • pub use dpi;

Modules§

  • monitor
    Types useful for interacting with a user’s monitors.
  • webview
    A layer between raw Runtime webviews and Tauri.
  • window
    A layer between raw Runtime windows and Tauri.

Structs§

  • Icon
    Window icon.
  • ProgressBarState
    Progress Bar State
  • Rect
    A rectangular region.
  • RuntimeInitArgs

Enums§

  • DeviceEventFilter
  • Error
  • ExitRequestedEventAction
    Action to take when the event loop is about to exit
  • ProgressBarStatus
    Progress bar status.
  • ResizeDirection
    Defines the orientation that a window resize will be performed.
  • RunEvent
    Event triggered on the event loop run.
  • UserAttentionType
    Type of user attention requested on a window.

Traits§

  • EventLoopProxy
  • Runtime
    The webview runtime interface.
  • RuntimeHandle
    A Send handle to the runtime.
  • UserEvent
    A type that can be used as an user event.
  • WebviewDispatch
    Webview dispatcher. A thread-safe handle to the webview APIs.
  • WindowDispatch
    Window dispatcher. A thread-safe handle to the window APIs.

Type Aliases§

  • Result
    Result type.
  • WebviewEventId
  • WindowEventId

Results

Settings
Help
trait
tauri_runtime::WebviewDispatch
Webview dispatcher. A thread-safe handle to the webview …
assoc type
tauri_runtime::Runtime::WebviewDispatcher
The webview message dispatcher.
trait
tauri_runtime::WindowDispatch
Window dispatcher. A thread-safe handle to the window APIs.
trait method
tauri_runtime::WebviewDispatch::open_devtools
Open the web inspector which is usually called devtools.
trait method
tauri_runtime::WebviewDispatch::close_devtools
Close the web inspector which is usually called devtools.
trait method
tauri_runtime::WebviewDispatch::url
Returns the webview’s current URL.
trait method
tauri_runtime::WebviewDispatch::hide
Hide the webview
trait method
tauri_runtime::WebviewDispatch::show
Show the webview
trait method
tauri_runtime::WebviewDispatch::close
Closes the webview.
trait method
tauri_runtime::WebviewDispatch::print
Opens the dialog to prints the contents of the webview.
trait method
tauri_runtime::WebviewDispatch::bounds
Returns the webview’s bounds.
trait method
tauri_runtime::WebviewDispatch::set_focus
Bring the window to front and focus the webview.
trait method
tauri_runtime::WebviewDispatch::is_devtools_open
Gets the devtools window’s current open state.
trait method
tauri_runtime::WebviewDispatch::clear_all_browsing_data
Clear all browsing data for this webview.
trait method
tauri_runtime::WebviewDispatch::size
Returns the physical size of the webviews’s client area.
trait method
tauri_runtime::WebviewDispatch::navigate
Navigate to the given URL.
trait method
tauri_runtime::WebviewDispatch::position
Returns the position of the top-left hand corner of the …
trait method
tauri_runtime::WebviewDispatch::reparent
Moves the webview to the given window.
trait method
tauri_runtime::WebviewDispatch::set_size
Resizes the webview.
trait method
tauri_runtime::WebviewDispatch::set_zoom
Set the webview zoom level
trait method
tauri_runtime::WebviewDispatch::set_bounds
Sets the webview’s bounds.
trait method
tauri_runtime::WebviewDispatch::set_position
Updates the webview position.
trait method
tauri_runtime::WebviewDispatch::set_auto_resize
Sets whether the webview should automatically grow and …
trait method
tauri_runtime::WebviewDispatch::eval_script
Executes javascript on the window this WindowDispatch …
trait method
tauri_runtime::WebviewDispatch::on_webview_event
Registers a webview event handler.
trait method
tauri_runtime::WebviewDispatch::run_on_main_thread
Run a task on the main thread.
trait method
tauri_runtime::WebviewDispatch::with_webview
Runs a closure with the platform webview object as …
trait method
tauri_runtime::Runtime::handle
Gets a runtime handle.
trait method
tauri_runtime::Runtime::create_proxy
Creates an EventLoopProxy that can be used to dispatch …
trait method
tauri_runtime::Runtime::primary_monitor
trait method
tauri_runtime::Runtime::available_monitors
trait method
tauri_runtime::Runtime::run
Run the webview runtime.
trait method
tauri_runtime::Runtime::set_theme
trait method
tauri_runtime::Runtime::cursor_position
trait method
tauri_runtime::Runtime::monitor_from_point
trait method
tauri_runtime::Runtime::set_device_event_filter
Change the device event filter mode.
trait method
tauri_runtime::Runtime::create_webview
Create a new webview.
trait method
tauri_runtime::Runtime::run_iteration
Runs an iteration of the runtime event loop and returns …
trait method
tauri_runtime::Runtime::create_window
Create a new window.
trait method
tauri_runtime::Runtime::new
Creates a new webview runtime. Must be used on the main …
trait method
tauri_runtime::Runtime::new_any_thread
Creates a new webview runtime on any thread.
trait method
tauri_runtime::Runtime::create_webview
Create a new webview.
trait method
tauri_runtime::Runtime::create_window
Create a new window.