pub struct ProcessCosts {
pub ext: ExtCosts,
pub lazy_pages: LazyPagesCosts,
pub read: CostOf<CallsAmount>,
pub read_per_byte: CostOf<BytesAmount>,
pub write: CostOf<CallsAmount>,
pub instrumentation: CostOf<CallsAmount>,
pub instrumentation_per_byte: CostOf<BytesAmount>,
pub instantiation_costs: InstantiationCosts,
pub load_allocations_per_interval: CostOf<u32>,
}
Expand description
Costs for message processing
Fields§
§ext: ExtCosts
Execution externalities costs.
lazy_pages: LazyPagesCosts
Lazy pages costs.
read: CostOf<CallsAmount>
Storage read cost.
read_per_byte: CostOf<BytesAmount>
Storage read per byte cost.
write: CostOf<CallsAmount>
Storage write cost.
instrumentation: CostOf<CallsAmount>
Code instrumentation cost.
instrumentation_per_byte: CostOf<BytesAmount>
Code instrumentation per byte cost.
instantiation_costs: InstantiationCosts
Module instantiation costs.
load_allocations_per_interval: CostOf<u32>
Load program allocations cost per interval.
Trait Implementations§
Source§impl Clone for ProcessCosts
impl Clone for ProcessCosts
Source§fn clone(&self) -> ProcessCosts
fn clone(&self) -> ProcessCosts
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProcessCosts
impl Debug for ProcessCosts
Source§impl Default for ProcessCosts
impl Default for ProcessCosts
Source§fn default() -> ProcessCosts
fn default() -> ProcessCosts
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProcessCosts
impl PartialEq for ProcessCosts
impl Eq for ProcessCosts
impl StructuralPartialEq for ProcessCosts
Auto Trait Implementations§
impl Freeze for ProcessCosts
impl RefUnwindSafe for ProcessCosts
impl Send for ProcessCosts
impl Sync for ProcessCosts
impl Unpin for ProcessCosts
impl UnwindSafe for ProcessCosts
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