Module mock_builder::storage

source ·
Expand description

Provide functions for register/execute calls This module is in change of storing closures with the type Fn(I) -> O in a static lifetime storage, supporting mixing differents I and O types. Because we need to merge different closures with different types in the same storage, we use an u128 as closure identification (composed by the closure function pointer (u64) and the pointer to the closure metadata (u64).

Enums§

Functions§

  • Execute a call from the call storage identified by a call_id.
  • Register a call into the call storage. The registered call can be uniquely identified by the returned CallId.

Type Aliases§

  • Identify a call in the call storage