Module workflow_core::runtime
source · Expand description
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.
Enums
- application runtime info
Functions
- Helper to test whether the application is running under native runtime which is not a Solana OS and architecture is not WASM32
- Helper to test whether the application is running under NodeJs-compatible environment.
- Helper to test whether the application is running under NW environment.
- Helper to test whether the application is running under Solana OS.
- Helper to test whether the application is running under WASM32 architecture.
- Helper to test whether the application is running under in a regular browser environment.