pub struct Schedule {
pub version: u32,
pub regular_op_cost: Gas,
pub grow_mem_cost: Gas,
pub max_stack_height: u32,
pub max_table_size: u32,
pub max_memory_pages: u32,
pub has_forbidden_floats: bool,
pub has_grow_cost: bool,
pub has_metering: bool,
pub has_table_size_limit: bool,
pub per_type_op_cost: HashMap<String, u32>,
}
Expand description
Definition of the cost schedule and other parameterizations for wasm vm.
Fields
version: u32
Version of the schedule.
regular_op_cost: Gas
Gas cost of a regular operation.
grow_mem_cost: Gas
Gas cost of a growing memory by single page.
max_stack_height: u32
Maximum allowed stack height.
See <https://wiki.parity.io/WebAssembly-StackHeight>
to find out
how the stack frame cost is calculated.
max_table_size: u32
Maximum allowed size of a declared table.
max_memory_pages: u32
Maximum number of memory pages.
has_forbidden_floats: bool
Floats are forbidden
has_grow_cost: bool
Cost of memory growth
has_metering: bool
Is metering on
has_table_size_limit: bool
Is table size limit on
per_type_op_cost: HashMap<String, u32>
Op cost bit
Implementations
Create schedule with version
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Schedule
impl UnwindSafe for Schedule
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more