pub struct Schedule {
pub limits: Limits,
pub instruction_weights: InstructionWeights,
pub syscall_weights: SyscallWeights,
pub memory_weights: MemoryWeights,
pub rent_weights: RentWeights,
pub db_weights: DbWeights,
pub task_weights: TaskWeights,
pub instantiation_weights: InstantiationWeights,
pub code_instrumentation_cost: Weight,
pub code_instrumentation_byte_cost: Weight,
pub load_allocations_weight: Weight,
}
Expand description
Definition of the cost schedule and other parameterization for the wasm vm.
Fields§
§limits: Limits
Describes the upper limits on various metrics.
instruction_weights: InstructionWeights
The weights for individual wasm instructions.
syscall_weights: SyscallWeights
The weights for each imported function a program is allowed to call.
memory_weights: MemoryWeights
The weights for memory interaction.
rent_weights: RentWeights
The weights for renting.
db_weights: DbWeights
The weights for database access.
task_weights: TaskWeights
The weights for executing tasks.
instantiation_weights: InstantiationWeights
The weights for instantiation of the module.
code_instrumentation_cost: Weight
WASM code instrumentation base cost.
code_instrumentation_byte_cost: Weight
WASM code instrumentation per-byte cost.
load_allocations_weight: Weight
Load allocations weight.
Implementations§
Source§impl Schedule
impl Schedule
pub fn process_costs(&self) -> ProcessCosts
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more