[][src]Struct near_vm_logic::VMConfig

pub struct VMConfig {
    pub ext_costs: ExtCostsConfig,
    pub grow_mem_cost: u32,
    pub regular_op_cost: u32,
    pub limit_config: VMLimitConfig,
}

Fields

ext_costs: ExtCostsConfig

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.

limit_config: VMLimitConfig

Describes limits for VM and Runtime.

Implementations

impl VMConfig[src]

pub fn non_crypto_hash(&self) -> u64[src]

Computes non-cryptographically-proof hash. The computation is fast but not cryptographically secure.

pub fn free() -> Self[src]

Trait Implementations

impl Clone for VMConfig[src]

impl Debug for VMConfig[src]

impl Default for VMConfig[src]

impl<'de> Deserialize<'de> for VMConfig[src]

impl Hash for VMConfig[src]

impl Serialize for VMConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.