Docs.rs
  • sp-wasm-interface-21.0.1
    • sp-wasm-interface 21.0.1
    • Permalink
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • github:paritytech:core-devs
    • parity-crate-owner
    • Dependencies
      • anyhow ^1.0.81 normal optional
      • parity-scale-codec ^3.6.12 normal
      • impl-trait-for-tuples ^0.2.2 normal
      • log ^0.4.22 normal optional
      • wasmtime ^8.0.1 normal optional
    • Versions
    • 98.11% of the crate is documented
  • Platform
    • 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 sp_wasm_interface

sp_wasm_interface21.0.1

  • All Items

Crate Items

  • Macros
  • Structs
  • Enums
  • Traits
  • Type Aliases

Crates

  • sp_wasm_interface

Crate sp_wasm_interface

Source
Expand description

Types and traits for interfacing between the host and the wasm runtime.

Macros§

if_wasmtime_is_enabled

Structs§

ExtendedHostFunctions
A wrapper which merges two sets of host functions, and allows the second set to override the host functions from the first set.
Pointer
Type to represent a pointer in wasm at the host.
Signature
The Signature of a function

Enums§

ReturnValue
Typed value that can be returned from a function.
Value
Values supported by Substrate on the boundary between host/Wasm.
ValueType
Value types supported by Substrate on the boundary between host/Wasm.

Traits§

Function
Something that provides a function implementation on the host for a wasm function.
FunctionContext
Context used by Function to interact with the allocator and the memory of the wasm instance.
HostFunctions
Something that provides implementations for host functions.
IntoValue
Something that can be converted into a wasm compatible Value.
MaybeRefUnwindSafe
A trait that requires RefUnwindSafe when feature = std.
PointerType
Something that can be wrapped in a wasm Pointer.
TryFromValue
Something that can may be created from a wasm Value.
WasmTy
A trait for types directly usable at the WASM FFI boundary without any conversion at all.

Type Aliases§

Result
Result type used by traits in this crate.
WordSize
The word size used in wasm. Normally known as usize in Rust.

Results

Settings
Help
    trait
    sp_wasm_interface::IntoValue
    Something that can be converted into a wasm compatible …
    trait method
    sp_wasm_interface::IntoValue::into_value
    Convert self into a wasm Value.
    method
    sp_wasm_interface::Pointer::into_value
    trait method
    sp_wasm_interface::IntoValue::into_value
    IntoValue -> Value
    Convert self into a wasm Value.
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.