pub struct LazyPagesCosts {
pub signal_read: CostOf<GearPagesAmount>,
pub signal_write: CostOf<GearPagesAmount>,
pub signal_write_after_read: CostOf<GearPagesAmount>,
pub host_func_read: CostOf<GearPagesAmount>,
pub host_func_write: CostOf<GearPagesAmount>,
pub host_func_write_after_read: CostOf<GearPagesAmount>,
pub load_page_storage_data: CostOf<GearPagesAmount>,
}
Expand description
Memory pages lazy access costs.
Fields§
§signal_read: CostOf<GearPagesAmount>
First read page access cost.
signal_write: CostOf<GearPagesAmount>
First write page access cost.
signal_write_after_read: CostOf<GearPagesAmount>
First write access cost for page, which has been already read accessed.
host_func_read: CostOf<GearPagesAmount>
First read page access cost from host function call.
host_func_write: CostOf<GearPagesAmount>
First write page access cost from host function call.
host_func_write_after_read: CostOf<GearPagesAmount>
First write page access cost from host function call.
load_page_storage_data: CostOf<GearPagesAmount>
Loading page data from storage cost.
Trait Implementations§
Source§impl Clone for LazyPagesCosts
impl Clone for LazyPagesCosts
Source§fn clone(&self) -> LazyPagesCosts
fn clone(&self) -> LazyPagesCosts
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 LazyPagesCosts
impl Debug for LazyPagesCosts
Source§impl Default for LazyPagesCosts
impl Default for LazyPagesCosts
Source§fn default() -> LazyPagesCosts
fn default() -> LazyPagesCosts
Returns the “default value” for a type. Read more
Source§impl From<MemoryWeights> for LazyPagesCosts
impl From<MemoryWeights> for LazyPagesCosts
Source§fn from(val: MemoryWeights) -> Self
fn from(val: MemoryWeights) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LazyPagesCosts
impl PartialEq for LazyPagesCosts
impl Eq for LazyPagesCosts
impl StructuralPartialEq for LazyPagesCosts
Auto Trait Implementations§
impl Freeze for LazyPagesCosts
impl RefUnwindSafe for LazyPagesCosts
impl Send for LazyPagesCosts
impl Sync for LazyPagesCosts
impl Unpin for LazyPagesCosts
impl UnwindSafe for LazyPagesCosts
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