Docs.rs
  • sp-wasm-interface-2.0.0-alpha.2
    • sp-wasm-interface 2.0.0-alpha.2
    • Docs.rs crate page
    • GPL-3.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • github:paritytech:core-devs
    • parity-crate-owner
    • Dependencies
      • parity-scale-codec ^1.1.2 normal
      • impl-trait-for-tuples ^0.1.2 normal
      • sp-std ^2.0.0-alpha.2 normal
      • wasmi ^0.6.2 normal
    • Versions
  • Go to latest stable release
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate sp_wasm_interface

See all sp_wasm_interface's items

  • Structs
  • Enums
  • Traits
  • Type Definitions

Crates

  • sp_wasm_interface
Change settings

[−][src]Crate sp_wasm_interface

[−] Expand description

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

Structs

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.

ReadPrimitive

Something that can read a primitive from a wasm memory location.

Sandbox

Something that provides access to the sandbox.

TryFromValue

Something that can may be created from a wasm Value.

WritePrimitive

Something that can write a primitive to wasm memory location.

Type Definitions

MemoryId

Sandbox memory identifier.

Result

Result type used by traits in this crate.

WordSize

The word size used in wasm. Normally known as usize in Rust.

Results for Function

In Names
(4)
In Parameters
(0)
In Return Types
(1)
sp_wasm_interface::FunctionSomething that provides a function implementation on the… 
sp_wasm_interface::HostFunctionsSomething that provides implementations for host functions. 
sp_wasm_interface::HostFunctions::host_functionsReturns the host functions `Self` provides. 
sp_wasm_interface::FunctionContextContext used by `Function` to interact with the allocator… 
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.
sp_wasm_interface::HostFunctions::host_functionsReturns the host functions `Self` provides. 

Keyboard Shortcuts

?
Show this help dialog
S
Focus the search field
↑
Move up in search results
↓
Move down in search results
↹
Switch tab
⏎
Go to active search result
+
Expand all sections
-
Collapse all sections

Search Tricks

Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given type.

Accepted types are: fn, mod, struct, enum, trait, type, macro, and const.

Search functions by type signature (e.g., vec -> usize or * -> vec)

Search multiple things at once by splitting your query with comma (e.g., str,u8 or String,struct:Vec,test)

You can look for items with an exact name by putting double quotes around your request: "string"

Look for items inside another one by searching for a path: vec::Vec