[−][src]Struct near_bindgen::VMConfig
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.
max_gas_burnt: u64
Max amount of gas that can be used, excluding gas attached to promises.
max_stack_height: u32
How tall the stack is allowed to grow?
See https://wiki.parity.io/WebAssembly-StackHeight to find out how the stack frame cost is calculated.
initial_memory_pages: u32
The initial number of memory pages.
max_memory_pages: u32
What is the maximal memory pages amount is allowed to have for a contract.
registers_memory_limit: u64
Limit of memory used by registers.
max_register_size: u64
Maximum number of bytes that can be stored in a single register.
max_number_registers: u64
Maximum number of registers that can be used simultaneously.
max_number_logs: u64
Maximum number of log entries.
max_log_len: u64
Maximum length of a single log, in bytes.
Methods
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() -> VMConfig
[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]
fn deserialize<__D>(
__deserializer: __D
) -> Result<VMConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<VMConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Hash for VMConfig
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Serialize for VMConfig
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for VMConfig
impl Send for VMConfig
impl Sync for VMConfig
impl Unpin for VMConfig
impl UnwindSafe for VMConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,