pub struct VMConfigView {
pub ext_costs: ExtCostsConfigView,
pub grow_mem_cost: u32,
pub regular_op_cost: u32,
pub vm_kind: VMKind,
pub discard_custom_sections: bool,
pub saturating_float_to_int: bool,
pub global_contract_host_fns: bool,
pub storage_get_mode: StorageGetMode,
pub fix_contract_loading_cost: bool,
pub implicit_account_creation: bool,
pub eth_implicit_accounts: bool,
pub limit_config: LimitConfig,
}
Fields§
§ext_costs: ExtCostsConfigView
Costs for runtime externals
grow_mem_cost: u32
Gas cost of a growing memory by single page.
regular_op_cost: u32
Gas cost of a regular operation.
vm_kind: VMKind
See VMConfig::vm_kind.
discard_custom_sections: bool
§saturating_float_to_int: bool
§global_contract_host_fns: bool
§storage_get_mode: StorageGetMode
§fix_contract_loading_cost: bool
§implicit_account_creation: bool
§eth_implicit_accounts: bool
§limit_config: LimitConfig
Describes limits for VM and Runtime.
TODO: Consider changing this to VMLimitConfigView
to avoid dependency
on runtime.
Trait Implementations§
Source§impl Clone for VMConfigView
impl Clone for VMConfigView
Source§fn clone(&self) -> VMConfigView
fn clone(&self) -> VMConfigView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VMConfigView
impl Debug for VMConfigView
Source§impl<'de> Deserialize<'de> for VMConfigView
impl<'de> Deserialize<'de> for VMConfigView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<Config> for VMConfigView
impl From<Config> for VMConfigView
Source§impl From<VMConfigView> for Config
impl From<VMConfigView> for Config
Source§fn from(view: VMConfigView) -> Self
fn from(view: VMConfigView) -> Self
Converts to this type from the input type.
Source§impl Hash for VMConfigView
impl Hash for VMConfigView
Source§impl PartialEq for VMConfigView
impl PartialEq for VMConfigView
Source§impl Serialize for VMConfigView
impl Serialize for VMConfigView
impl Eq for VMConfigView
impl StructuralPartialEq for VMConfigView
Auto Trait Implementations§
impl Freeze for VMConfigView
impl RefUnwindSafe for VMConfigView
impl Send for VMConfigView
impl Sync for VMConfigView
impl Unpin for VMConfigView
impl UnwindSafe for VMConfigView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.