Struct ExtCostsConfigView

Source
pub struct ExtCostsConfigView {
Show 87 fields pub alt_bn128_g1_multiexp_base: u64, pub alt_bn128_g1_multiexp_element: u64, pub alt_bn128_g1_sum_base: u64, pub alt_bn128_g1_sum_element: u64, pub alt_bn128_pairing_check_base: u64, pub alt_bn128_pairing_check_element: u64, pub base: u64, pub bls12381_g1_multiexp_base: u64, pub bls12381_g1_multiexp_element: u64, pub bls12381_g2_multiexp_base: u64, pub bls12381_g2_multiexp_element: u64, pub bls12381_map_fp2_to_g2_base: u64, pub bls12381_map_fp2_to_g2_element: u64, pub bls12381_map_fp_to_g1_base: u64, pub bls12381_map_fp_to_g1_element: u64, pub bls12381_p1_decompress_base: u64, pub bls12381_p1_decompress_element: u64, pub bls12381_p1_sum_base: u64, pub bls12381_p1_sum_element: u64, pub bls12381_p2_decompress_base: u64, pub bls12381_p2_decompress_element: u64, pub bls12381_p2_sum_base: u64, pub bls12381_p2_sum_element: u64, pub bls12381_pairing_base: u64, pub bls12381_pairing_element: u64, pub contract_compile_base: u64, pub contract_compile_bytes: u64, pub contract_loading_base: u64, pub contract_loading_bytes: u64, pub ecrecover_base: u64, pub ed25519_verify_base: u64, pub ed25519_verify_byte: u64, pub keccak256_base: u64, pub keccak256_byte: u64, pub keccak512_base: u64, pub keccak512_byte: u64, pub log_base: u64, pub log_byte: u64, pub promise_and_base: u64, pub promise_and_per_promise: u64, pub promise_return: u64, pub read_cached_trie_node: u64, pub read_memory_base: u64, pub read_memory_byte: u64, pub read_register_base: u64, pub read_register_byte: u64, pub ripemd160_base: u64, pub ripemd160_block: u64, pub sha256_base: u64, pub sha256_byte: u64, pub storage_has_key_base: u64, pub storage_has_key_byte: u64, pub storage_iter_create_from_byte: u64, pub storage_iter_create_prefix_base: u64, pub storage_iter_create_prefix_byte: u64, pub storage_iter_create_range_base: u64, pub storage_iter_create_to_byte: u64, pub storage_iter_next_base: u64, pub storage_iter_next_key_byte: u64, pub storage_iter_next_value_byte: u64, pub storage_large_read_overhead_base: u64, pub storage_large_read_overhead_byte: u64, pub storage_read_base: u64, pub storage_read_key_byte: u64, pub storage_read_value_byte: u64, pub storage_remove_base: u64, pub storage_remove_key_byte: u64, pub storage_remove_ret_value_byte: u64, pub storage_write_base: u64, pub storage_write_evicted_byte: u64, pub storage_write_key_byte: u64, pub storage_write_value_byte: u64, pub touching_trie_node: u64, pub utf16_decoding_base: u64, pub utf16_decoding_byte: u64, pub utf8_decoding_base: u64, pub utf8_decoding_byte: u64, pub validator_stake_base: u64, pub validator_total_stake_base: u64, pub write_memory_base: u64, pub write_memory_byte: u64, pub write_register_base: u64, pub write_register_byte: u64, pub yield_create_base: u64, pub yield_create_byte: u64, pub yield_resume_base: u64, pub yield_resume_byte: u64,
}
Expand description

Typed view of ExtCostsConfig to preserve JSON output field names in protocol config RPC output.

JSON schema
{
 "description": "Typed view of ExtCostsConfig to preserve JSON output field names in protocol\nconfig RPC output.",
 "type": "object",
 "required": [
   "alt_bn128_g1_multiexp_base",
   "alt_bn128_g1_multiexp_element",
   "alt_bn128_g1_sum_base",
   "alt_bn128_g1_sum_element",
   "alt_bn128_pairing_check_base",
   "alt_bn128_pairing_check_element",
   "base",
   "bls12381_g1_multiexp_base",
   "bls12381_g1_multiexp_element",
   "bls12381_g2_multiexp_base",
   "bls12381_g2_multiexp_element",
   "bls12381_map_fp2_to_g2_base",
   "bls12381_map_fp2_to_g2_element",
   "bls12381_map_fp_to_g1_base",
   "bls12381_map_fp_to_g1_element",
   "bls12381_p1_decompress_base",
   "bls12381_p1_decompress_element",
   "bls12381_p1_sum_base",
   "bls12381_p1_sum_element",
   "bls12381_p2_decompress_base",
   "bls12381_p2_decompress_element",
   "bls12381_p2_sum_base",
   "bls12381_p2_sum_element",
   "bls12381_pairing_base",
   "bls12381_pairing_element",
   "contract_compile_base",
   "contract_compile_bytes",
   "contract_loading_base",
   "contract_loading_bytes",
   "ecrecover_base",
   "ed25519_verify_base",
   "ed25519_verify_byte",
   "keccak256_base",
   "keccak256_byte",
   "keccak512_base",
   "keccak512_byte",
   "log_base",
   "log_byte",
   "promise_and_base",
   "promise_and_per_promise",
   "promise_return",
   "read_cached_trie_node",
   "read_memory_base",
   "read_memory_byte",
   "read_register_base",
   "read_register_byte",
   "ripemd160_base",
   "ripemd160_block",
   "sha256_base",
   "sha256_byte",
   "storage_has_key_base",
   "storage_has_key_byte",
   "storage_iter_create_from_byte",
   "storage_iter_create_prefix_base",
   "storage_iter_create_prefix_byte",
   "storage_iter_create_range_base",
   "storage_iter_create_to_byte",
   "storage_iter_next_base",
   "storage_iter_next_key_byte",
   "storage_iter_next_value_byte",
   "storage_large_read_overhead_base",
   "storage_large_read_overhead_byte",
   "storage_read_base",
   "storage_read_key_byte",
   "storage_read_value_byte",
   "storage_remove_base",
   "storage_remove_key_byte",
   "storage_remove_ret_value_byte",
   "storage_write_base",
   "storage_write_evicted_byte",
   "storage_write_key_byte",
   "storage_write_value_byte",
   "touching_trie_node",
   "utf16_decoding_base",
   "utf16_decoding_byte",
   "utf8_decoding_base",
   "utf8_decoding_byte",
   "validator_stake_base",
   "validator_total_stake_base",
   "write_memory_base",
   "write_memory_byte",
   "write_register_base",
   "write_register_byte",
   "yield_create_base",
   "yield_create_byte",
   "yield_resume_base",
   "yield_resume_byte"
 ],
 "properties": {
   "alt_bn128_g1_multiexp_base": {
     "description": "Base cost for multiexp",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "alt_bn128_g1_multiexp_element": {
     "description": "Per element cost for multiexp",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "alt_bn128_g1_sum_base": {
     "description": "Base cost for sum",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "alt_bn128_g1_sum_element": {
     "description": "Per element cost for sum",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "alt_bn128_pairing_check_base": {
     "description": "Base cost for pairing check",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "alt_bn128_pairing_check_element": {
     "description": "Per element cost for pairing check",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "base": {
     "description": "Base cost for calling a host function.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_g1_multiexp_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_g1_multiexp_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_g2_multiexp_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_g2_multiexp_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_map_fp2_to_g2_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_map_fp2_to_g2_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_map_fp_to_g1_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_map_fp_to_g1_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p1_decompress_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p1_decompress_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p1_sum_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p1_sum_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p2_decompress_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p2_decompress_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p2_sum_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_p2_sum_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_pairing_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "bls12381_pairing_element": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "contract_compile_base": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "contract_compile_bytes": {
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "contract_loading_base": {
     "description": "Base cost of loading a pre-compiled contract",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "contract_loading_bytes": {
     "description": "Cost per byte of loading a pre-compiled contract",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "ecrecover_base": {
     "description": "Cost of calling ecrecover",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "ed25519_verify_base": {
     "description": "Cost of getting ed25519 base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "ed25519_verify_byte": {
     "description": "Cost of getting ed25519 per byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "keccak256_base": {
     "description": "Cost of getting sha256 base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "keccak256_byte": {
     "description": "Cost of getting sha256 per byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "keccak512_base": {
     "description": "Cost of getting sha256 base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "keccak512_byte": {
     "description": "Cost of getting sha256 per byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "log_base": {
     "description": "Cost for calling logging.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "log_byte": {
     "description": "Cost for logging per byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "promise_and_base": {
     "description": "Cost for calling `promise_and`",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "promise_and_per_promise": {
     "description": "Cost for calling `promise_and` for each promise",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "promise_return": {
     "description": "Cost for calling `promise_return`",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "read_cached_trie_node": {
     "description": "Cost for reading trie node from memory",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "read_memory_base": {
     "description": "Base cost for guest memory read",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "read_memory_byte": {
     "description": "Cost for guest memory read",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "read_register_base": {
     "description": "Base cost for reading from register",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "read_register_byte": {
     "description": "Cost for reading byte from register",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "ripemd160_base": {
     "description": "Cost of getting ripemd160 base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "ripemd160_block": {
     "description": "Cost of getting ripemd160 per message block",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "sha256_base": {
     "description": "Cost of getting sha256 base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "sha256_byte": {
     "description": "Cost of getting sha256 per byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_has_key_base": {
     "description": "Storage trie check for key existence cost base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_has_key_byte": {
     "description": "Storage trie check for key existence per key byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_create_from_byte": {
     "description": "Create trie range iterator cost per byte of from key.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_create_prefix_base": {
     "description": "Create trie prefix iterator cost base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_create_prefix_byte": {
     "description": "Create trie prefix iterator cost per byte.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_create_range_base": {
     "description": "Create trie range iterator cost base",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_create_to_byte": {
     "description": "Create trie range iterator cost per byte of to key.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_next_base": {
     "description": "Trie iterator per key base cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_next_key_byte": {
     "description": "Trie iterator next key byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_iter_next_value_byte": {
     "description": "Trie iterator next key byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_large_read_overhead_base": {
     "description": "Storage trie read key overhead base cost, when doing large reads",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_large_read_overhead_byte": {
     "description": "Storage trie read key overhead  per-byte cost, when doing large reads",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_read_base": {
     "description": "Storage trie read key base cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_read_key_byte": {
     "description": "Storage trie read key per byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_read_value_byte": {
     "description": "Storage trie read value cost per byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_remove_base": {
     "description": "Remove key from trie base cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_remove_key_byte": {
     "description": "Remove key from trie per byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_remove_ret_value_byte": {
     "description": "Remove key from trie ret value byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_write_base": {
     "description": "Storage trie write key base cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_write_evicted_byte": {
     "description": "Storage trie write cost per byte of evicted value.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_write_key_byte": {
     "description": "Storage trie write key per byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "storage_write_value_byte": {
     "description": "Storage trie write value per byte cost",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "touching_trie_node": {
     "description": "Cost per reading trie node from DB",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "utf16_decoding_base": {
     "description": "Base cost of decoding utf16. It's used for `log_utf16`.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "utf16_decoding_byte": {
     "description": "Cost per byte of decoding utf16. It's used for `log_utf16`.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "utf8_decoding_base": {
     "description": "Base cost of decoding utf8. It's used for `log_utf8` and `panic_utf8`.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "utf8_decoding_byte": {
     "description": "Cost per byte of decoding utf8. It's used for `log_utf8` and `panic_utf8`.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "validator_stake_base": {
     "description": "Cost of calling `validator_stake`.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "validator_total_stake_base": {
     "description": "Cost of calling `validator_total_stake`.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "write_memory_base": {
     "description": "Base cost for guest memory write",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "write_memory_byte": {
     "description": "Cost for guest memory write per byte",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "write_register_base": {
     "description": "Base cost for writing into register",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "write_register_byte": {
     "description": "Cost for writing byte into register",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "yield_create_base": {
     "description": "Base cost for creating a yield promise.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "yield_create_byte": {
     "description": "Per byte cost of arguments and method name.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "yield_resume_base": {
     "description": "Base cost for resuming a yield receipt.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   },
   "yield_resume_byte": {
     "description": "Per byte cost of resume payload.",
     "type": "integer",
     "format": "uint64",
     "minimum": 0.0
   }
 }
}

Fields§

§alt_bn128_g1_multiexp_base: u64

Base cost for multiexp

§alt_bn128_g1_multiexp_element: u64

Per element cost for multiexp

§alt_bn128_g1_sum_base: u64

Base cost for sum

§alt_bn128_g1_sum_element: u64

Per element cost for sum

§alt_bn128_pairing_check_base: u64

Base cost for pairing check

§alt_bn128_pairing_check_element: u64

Per element cost for pairing check

§base: u64

Base cost for calling a host function.

§bls12381_g1_multiexp_base: u64§bls12381_g1_multiexp_element: u64§bls12381_g2_multiexp_base: u64§bls12381_g2_multiexp_element: u64§bls12381_map_fp2_to_g2_base: u64§bls12381_map_fp2_to_g2_element: u64§bls12381_map_fp_to_g1_base: u64§bls12381_map_fp_to_g1_element: u64§bls12381_p1_decompress_base: u64§bls12381_p1_decompress_element: u64§bls12381_p1_sum_base: u64§bls12381_p1_sum_element: u64§bls12381_p2_decompress_base: u64§bls12381_p2_decompress_element: u64§bls12381_p2_sum_base: u64§bls12381_p2_sum_element: u64§bls12381_pairing_base: u64§bls12381_pairing_element: u64§contract_compile_base: u64§contract_compile_bytes: u64§contract_loading_base: u64

Base cost of loading a pre-compiled contract

§contract_loading_bytes: u64

Cost per byte of loading a pre-compiled contract

§ecrecover_base: u64

Cost of calling ecrecover

§ed25519_verify_base: u64

Cost of getting ed25519 base

§ed25519_verify_byte: u64

Cost of getting ed25519 per byte

§keccak256_base: u64

Cost of getting sha256 base

§keccak256_byte: u64

Cost of getting sha256 per byte

§keccak512_base: u64

Cost of getting sha256 base

§keccak512_byte: u64

Cost of getting sha256 per byte

§log_base: u64

Cost for calling logging.

§log_byte: u64

Cost for logging per byte

§promise_and_base: u64

Cost for calling promise_and

§promise_and_per_promise: u64

Cost for calling promise_and for each promise

§promise_return: u64

Cost for calling promise_return

§read_cached_trie_node: u64

Cost for reading trie node from memory

§read_memory_base: u64

Base cost for guest memory read

§read_memory_byte: u64

Cost for guest memory read

§read_register_base: u64

Base cost for reading from register

§read_register_byte: u64

Cost for reading byte from register

§ripemd160_base: u64

Cost of getting ripemd160 base

§ripemd160_block: u64

Cost of getting ripemd160 per message block

§sha256_base: u64

Cost of getting sha256 base

§sha256_byte: u64

Cost of getting sha256 per byte

§storage_has_key_base: u64

Storage trie check for key existence cost base

§storage_has_key_byte: u64

Storage trie check for key existence per key byte

§storage_iter_create_from_byte: u64

Create trie range iterator cost per byte of from key.

§storage_iter_create_prefix_base: u64

Create trie prefix iterator cost base

§storage_iter_create_prefix_byte: u64

Create trie prefix iterator cost per byte.

§storage_iter_create_range_base: u64

Create trie range iterator cost base

§storage_iter_create_to_byte: u64

Create trie range iterator cost per byte of to key.

§storage_iter_next_base: u64

Trie iterator per key base cost

§storage_iter_next_key_byte: u64

Trie iterator next key byte cost

§storage_iter_next_value_byte: u64

Trie iterator next key byte cost

§storage_large_read_overhead_base: u64

Storage trie read key overhead base cost, when doing large reads

§storage_large_read_overhead_byte: u64

Storage trie read key overhead per-byte cost, when doing large reads

§storage_read_base: u64

Storage trie read key base cost

§storage_read_key_byte: u64

Storage trie read key per byte cost

§storage_read_value_byte: u64

Storage trie read value cost per byte cost

§storage_remove_base: u64

Remove key from trie base cost

§storage_remove_key_byte: u64

Remove key from trie per byte cost

§storage_remove_ret_value_byte: u64

Remove key from trie ret value byte cost

§storage_write_base: u64

Storage trie write key base cost

§storage_write_evicted_byte: u64

Storage trie write cost per byte of evicted value.

§storage_write_key_byte: u64

Storage trie write key per byte cost

§storage_write_value_byte: u64

Storage trie write value per byte cost

§touching_trie_node: u64

Cost per reading trie node from DB

§utf16_decoding_base: u64

Base cost of decoding utf16. It’s used for log_utf16.

§utf16_decoding_byte: u64

Cost per byte of decoding utf16. It’s used for log_utf16.

§utf8_decoding_base: u64

Base cost of decoding utf8. It’s used for log_utf8 and panic_utf8.

§utf8_decoding_byte: u64

Cost per byte of decoding utf8. It’s used for log_utf8 and panic_utf8.

§validator_stake_base: u64

Cost of calling validator_stake.

§validator_total_stake_base: u64

Cost of calling validator_total_stake.

§write_memory_base: u64

Base cost for guest memory write

§write_memory_byte: u64

Cost for guest memory write per byte

§write_register_base: u64

Base cost for writing into register

§write_register_byte: u64

Cost for writing byte into register

§yield_create_base: u64

Base cost for creating a yield promise.

§yield_create_byte: u64

Per byte cost of arguments and method name.

§yield_resume_base: u64

Base cost for resuming a yield receipt.

§yield_resume_byte: u64

Per byte cost of resume payload.

Trait Implementations§

Source§

impl Clone for ExtCostsConfigView

Source§

fn clone(&self) -> ExtCostsConfigView

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExtCostsConfigView

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ExtCostsConfigView

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&ExtCostsConfigView> for ExtCostsConfigView

Source§

fn from(value: &ExtCostsConfigView) -> Self

Converts to this type from the input type.
Source§

impl Serialize for ExtCostsConfigView

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,