[−][src]Struct casperlabs_engine_wasm_prep::wasm_costs::WasmCosts
Fields
regular: u32
Default opcode cost
div: u32
Div operations multiplier.
mul: u32
Mul operations multiplier.
mem: u32
Memory (load/store) operations multiplier.
initial_mem: u32
Memory stipend. Amount of free memory (in 64kb pages) each contract can use for stack.
grow_mem: u32
Grow memory cost, per page (64kb)
memcpy: u32
Memory copy cost, per byte
max_stack_height: u32
Max stack height (native WebAssembly stack limiter)
opcodes_mul: u32
Cost of wasm opcode is calculated as TABLE_ENTRY_COST * opcodes_mul
/
opcodes_div
opcodes_div: u32
Cost of wasm opcode is calculated as TABLE_ENTRY_COST * opcodes_mul
/
opcodes_div
Trait Implementations
impl Clone for WasmCosts
[src]
impl Copy for WasmCosts
[src]
impl Debug for WasmCosts
[src]
impl Default for WasmCosts
[src]
impl Eq for WasmCosts
[src]
impl FromBytes for WasmCosts
[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl PartialEq<WasmCosts> for WasmCosts
[src]
impl StructuralEq for WasmCosts
[src]
impl StructuralPartialEq for WasmCosts
[src]
impl ToBytes for WasmCosts
[src]
Auto Trait Implementations
impl RefUnwindSafe for WasmCosts
impl Send for WasmCosts
impl Sync for WasmCosts
impl Unpin for WasmCosts
impl UnwindSafe for WasmCosts
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,