Module workflow_rs::core

source ·

Modules§

  • Abortable trigger, can be used to cancel (abort) an asynchronous task.
  • async_std::channel re-exports and shims
  • Access to home and data folder (windows) when running natively or within Node.js
  • Rust enum conversion utilities
  • Access to environment variables when running natively or on top of Node.js (via process.env).
  • Miscellaneour helper traits.
  • Hex serialization traits
  • 64-bit random identifier struct Id that renders its value as a base58 string
  • LookupHandler provides ability to queue multiple async requests for the same key into a group of futures that resolve upon request completion.
  • The prelude module re-exports the most commonly used traits and types from the workflow_core crate.
  • Provides functions that allow to detect the runtime environment. These functions can be used to detect whether the code is running in a browser, node.js or native OS, the type of the underlying OS (Windows,Linux,MacOS,*BSD) as well as the type of a web environment (Browser or NWJS). This is useful for an application of an API to detect which environment it is operating under and subsequently restrict the functionality to the capabilities to this environment.
  • Sendable NewType for automatic Send marker wrapping of JS primitives.
  • task module provides helper functions for use with async closures that operate uniformly in native (tokio-backed) and WASM (async_std-backed) environments (i.e. a web browser).
  • time module provides re-export of WASM32-compatible Instant and provides platform neutral implementations for unixtime_as_millis_u128() and unixtime_as_millis_f64().
  • Trigger crate re-exports and shims
  • buffer slicing and other utilities

Macros§

  • The main macro provided by this crate. See crate documentation for more information.
  • Associates u8 values to each enum value and declares a TryFrom<u8> implementation for this enum allowing a try_from(u8) to enum conversion.
  • Associates u16 values to each enum value and declares a TryFrom<u16> implementation for this enum allowing a try_from(u16) to enum conversion.
  • Associates u32 values to each enum value and declares a TryFrom<u32> implementation for this enum allowing a try_from(u32) to enum conversion.
  • Associates usize values to each enum value and declares a TryFrom<usize> implementation for this enum allowing a try_from(usize) to enum conversion.