Struct near_primitives_core::config::VMLimitConfig [−][src]
Describes limits for VM and Runtime.
Fields
max_gas_burnt: Gas
Max amount of gas that can be used, excluding gas attached to promises.
max_gas_burnt_view: Gas
Max burnt gas per view method.
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. NOTE: It’s not a limiter itself, but it’s a value we use for initial_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_total_log_length: u64
Maximum total length in bytes of all log messages.
max_total_prepaid_gas: Gas
Max total prepaid gas for all function call actions per receipt.
max_actions_per_receipt: u64
Max number of actions per receipt.
max_number_bytes_method_names: u64
Max total length of all method names (including terminating character) for a function call permission access key.
max_length_method_name: u64
Max length of any method name (without terminating character).
max_arguments_length: u64
Max length of arguments in a function call action.
max_length_returned_data: u64
Max length of returned data
max_contract_size: u64
Max contract size
max_length_storage_key: u64
Max storage key size
max_length_storage_value: u64
Max storage value size
max_promises_per_function_call_action: u64
Max number of promises that a function call can create
max_number_input_data_dependencies: u64
Max number of input data dependencies
Trait Implementations
impl Clone for VMLimitConfig
[src]
fn clone(&self) -> VMLimitConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VMLimitConfig
[src]
impl Default for VMLimitConfig
[src]
impl<'de> Deserialize<'de> for VMLimitConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for VMLimitConfig
[src]
impl Hash for VMLimitConfig
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<VMLimitConfig> for VMLimitConfig
[src]
fn eq(&self, other: &VMLimitConfig) -> bool
[src]
fn ne(&self, other: &VMLimitConfig) -> bool
[src]
impl Serialize for VMLimitConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for VMLimitConfig
[src]
impl StructuralPartialEq for VMLimitConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for VMLimitConfig
impl Send for VMLimitConfig
impl Sync for VMLimitConfig
impl Unpin for VMLimitConfig
impl UnwindSafe for VMLimitConfig
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,