Crate puppeteer

source ·
Expand description

Puppeteer crates.io Docs Rust

A Minimal Dependency and Easy to Use GUI Creator in Rust using Async Channels

Re-exports§

Macros§

  • Include asset bytes at compile time
  • Include asset bytes at compile time from an absolute path
  • Include asset bytes at compile time but load the path from the manifest directory
  • Count the number of items inside a macro
  • Load strings within a Clone-on-Write with a 'static lifetime styles
  • Load static strings
  • Include asset in UTF-8 format at compile time

Structs§

  • Environment variables set when the app is initialized
  • The environment the app is running on. This includes the Operating System and other supported environment variables
  • An asset to be used in the app
  • Default resource file size is 1MiB
  • This is the color palette of the app
  • This provides the context menu builder
  • Custom logging handler for Puppeteer apps. Text filtering can be done by searching for [app_title]»
  • This struct us used to build your app
  • The Shell of the app contains all the imports like fonts, styles and scripts
  • An asset that has a static lifetime
  • This is helper function to create a title bar for the app
  • Create CSS for the title bar based on the color palette

Enums§

  • What is the architecture of the CPU that the app is running on
  • The extension used by the shared libraries on the Operating System the app is running on
  • The extension used by the shared libraries on the Operating System the app is running on.
  • Used to modify the view which can be a WebView
  • Check if operating system is Unix-like or Microsoft Windows based
  • The type of operating system the Window is running on
  • The error type for Puppeteer
  • Whether it is a dark or light theme or whether it will respect system settings
  • Event Handler for Puppeteer
  • An window resize operation

Constants§

Traits§

  • Methods to detect file type and convert to encoding formats like base64
  • This trait is used to perform UI operations like parsing the IPC messages and generating content to be displayed
  • Methods to detect file type and convert to encoding formats like base64
  • Trait that ensures a type can be converted to code that can be rendered into current view

Type Aliases§

  • A type that defines [Cow<’p, str>] for easier reuse
  • The callback used to modify a node based on the result of computation of it’s text content
  • A wrapper to Result<T, PuppeteerError>
  • A type that defines [Cow<’static, str>] for easier reuse
  • A type of &’static str