Docs.rs
  • tauri-runtime-2.5.0
    • tauri-runtime 2.5.0
    • Docs.rs crate page
    • Apache-2.0 OR MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • tauri-bot
    • Dependencies
      • cookie ^0.18 normal
      • dpi ^0.1 normal
      • http ^1 normal
      • raw-window-handle ^0.6 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • tauri-utils ^2.3.0 normal
      • thiserror ^2 normal
      • url ^2 normal
      • gtk ^0.18 normal
      • jni ^0.21 normal
      • url ^2 normal
      • windows ^0.60 normal
    • Versions
    • 76.72% 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
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate tauri_runtime

logo

tauri_runtime2.5.0

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

Cookie
Cookie extraction Representation of an HTTP cookie.
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 method
    tauri_runtime::WebviewDispatch::open_devtools
    &WebviewDispatch -> ()
    Open the web inspector which is usually called devtools.
    trait method
    tauri_runtime::WebviewDispatch::close_devtools
    &WebviewDispatch -> ()
    Close the web inspector which is usually called devtools.
    trait method
    tauri_runtime::WebviewDispatch::url
    &WebviewDispatch -> Result<String>
    Returns the webview’s current URL.
    trait method
    tauri_runtime::WebviewDispatch::hide
    &WebviewDispatch -> Result<()>
    Hide the webview
    trait method
    tauri_runtime::WebviewDispatch::show
    &WebviewDispatch -> Result<()>
    Show the webview
    trait method
    tauri_runtime::WebviewDispatch::close
    &WebviewDispatch -> Result<()>
    Closes the webview.
    trait method
    tauri_runtime::WebviewDispatch::print
    &WebviewDispatch -> Result<()>
    Opens the dialog to prints the contents of the webview.
    trait method
    tauri_runtime::WebviewDispatch::bounds
    &WebviewDispatch -> Result<Rect>
    Returns the webview’s bounds.
    trait method
    tauri_runtime::WebviewDispatch::reload
    &WebviewDispatch -> Result<()>
    Reloads the current page.
    trait method
    tauri_runtime::WebviewDispatch::set_focus
    &WebviewDispatch -> Result<()>
    Bring the window to front and focus the webview.
    trait method
    tauri_runtime::WebviewDispatch::is_devtools_open
    &WebviewDispatch -> Result<bool>
    Gets the devtools window’s current open state.
    trait method
    tauri_runtime::WebviewDispatch::clear_all_browsing_data
    &WebviewDispatch -> Result<()>
    Clear all browsing data for this webview.
    trait method
    tauri_runtime::WebviewDispatch::size
    &WebviewDispatch -> Result<PhysicalSize<u32>>
    Returns the physical size of the webviews’s client area.
    trait method
    tauri_runtime::WebviewDispatch::cookies
    &WebviewDispatch -> Result<Vec<Cookie>>
    Return all cookies in the cookie store.
    trait method
    tauri_runtime::WebviewDispatch::navigate
    &WebviewDispatch, Url -> Result<()>
    Navigate to the given URL.
    trait method
    tauri_runtime::WebviewDispatch::position
    &WebviewDispatch -> Result<PhysicalPosition<i32>>
    Returns the position of the top-left hand corner of the …
    trait method
    tauri_runtime::WebviewDispatch::reparent
    &WebviewDispatch, WindowId -> Result<()>
    Moves the webview to the given window.
    trait method
    tauri_runtime::WebviewDispatch::set_size
    &WebviewDispatch, Size -> Result<()>
    Resizes the webview.
    trait method
    tauri_runtime::WebviewDispatch::set_zoom
    &WebviewDispatch, f64 -> Result<()>
    Set the webview zoom level
    trait method
    tauri_runtime::WebviewDispatch::set_bounds
    &WebviewDispatch, Rect -> Result<()>
    Sets the webview’s bounds.
    trait method
    tauri_runtime::WebviewDispatch::set_position
    &WebviewDispatch, Position -> Result<()>
    Updates the webview position.
    trait method
    tauri_runtime::WebviewDispatch::set_auto_resize
    &WebviewDispatch, bool -> Result<()>
    Sets whether the webview should automatically grow and …
    trait method
    tauri_runtime::WebviewDispatch::cookies_for_url
    &WebviewDispatch, Url -> Result<Vec<Cookie>>
    Get cookies for a particular url.
    trait method
    tauri_runtime::WebviewDispatch::set_background_color
    &WebviewDispatch, Option<Color> -> Result<()>
    Set the webview background.
    trait method
    tauri_runtime::WebviewDispatch::eval_script
    &WebviewDispatch, S -> Result<()>
    Executes javascript on the window this WindowDispatch …
    trait method
    tauri_runtime::WebviewDispatch::run_on_main_thread
    &WebviewDispatch, F -> Result<()>
    Run a task on the main thread.
    trait method
    tauri_runtime::WebviewDispatch::on_webview_event
    &WebviewDispatch, F -> WebviewEventId
    Registers a webview event handler.
    trait method
    tauri_runtime::WebviewDispatch::with_webview
    &WebviewDispatch, F -> Result<()>
    Runs a closure with the platform webview object as …
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.