Enum near_vm_logic::profile::Cost
source · [−]pub enum Cost {
ActionCost {
action_cost_kind: ActionCosts,
},
ExtCost {
ext_cost_kind: ExtCosts,
},
WasmInstruction,
}
Variants
ActionCost
Fields
action_cost_kind: ActionCosts
ExtCost
Fields
ext_cost_kind: ExtCosts
WasmInstruction
Implementations
sourceimpl Cost
impl Cost
pub const ALL: &'static [Cost] = &[Cost::ActionCost{action_cost_kind: ActionCosts::create_account,}, Cost::ActionCost{action_cost_kind: ActionCosts::delete_account,}, Cost::ActionCost{action_cost_kind: ActionCosts::deploy_contract,}, Cost::ActionCost{action_cost_kind: ActionCosts::function_call,}, Cost::ActionCost{action_cost_kind: ActionCosts::transfer,}, Cost::ActionCost{action_cost_kind: ActionCosts::stake,}, Cost::ActionCost{action_cost_kind: ActionCosts::add_key,}, Cost::ActionCost{action_cost_kind: ActionCosts::delete_key,}, Cost::ActionCost{action_cost_kind: ActionCosts::value_return,}, Cost::ActionCost{action_cost_kind: ActionCosts::new_receipt,}, Cost::ExtCost{ext_cost_kind: ExtCosts::base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::contract_loading_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::contract_loading_bytes,}, Cost::ExtCost{ext_cost_kind: ExtCosts::read_memory_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::read_memory_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::write_memory_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::write_memory_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::read_register_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::read_register_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::write_register_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::write_register_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::utf8_decoding_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::utf8_decoding_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::utf16_decoding_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::utf16_decoding_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::sha256_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::sha256_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::keccak256_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::keccak256_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::keccak512_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::keccak512_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::ripemd160_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::ripemd160_block,}, Cost::ExtCost{ext_cost_kind: ExtCosts::ecrecover_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::log_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::log_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_write_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_write_key_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_write_value_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_write_evicted_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_read_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_read_key_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_read_value_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_remove_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_remove_key_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_remove_ret_value_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_has_key_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_has_key_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_create_prefix_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_create_prefix_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_create_range_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_create_from_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_create_to_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_next_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_next_key_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::storage_iter_next_value_byte,}, Cost::ExtCost{ext_cost_kind: ExtCosts::touching_trie_node,}, Cost::ExtCost{ext_cost_kind: ExtCosts::read_cached_trie_node,}, Cost::ExtCost{ext_cost_kind: ExtCosts::promise_and_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::promise_and_per_promise,}, Cost::ExtCost{ext_cost_kind: ExtCosts::promise_return,}, Cost::ExtCost{ext_cost_kind: ExtCosts::validator_stake_base,}, Cost::ExtCost{ext_cost_kind: ExtCosts::validator_total_stake_base,}, Cost::WasmInstruction]
pub fn index(self) -> usize
Trait Implementations
sourceimpl Index<Cost> for ProfileData
impl Index<Cost> for ProfileData
sourceimpl IndexMut<Cost> for ProfileData
impl IndexMut<Cost> for ProfileData
impl Copy for Cost
Auto Trait Implementations
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnwindSafe for Cost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more