pub struct LazyPagesWeights {
pub signal_read: CostPerPage<GearPage>,
pub signal_write: CostPerPage<GearPage>,
pub signal_write_after_read: CostPerPage<GearPage>,
pub host_func_read: CostPerPage<GearPage>,
pub host_func_write: CostPerPage<GearPage>,
pub host_func_write_after_read: CostPerPage<GearPage>,
pub load_page_storage_data: CostPerPage<GearPage>,
}
Expand description
Lazy-pages cases weights.
Fields§
§signal_read: CostPerPage<GearPage>
First read page access cost.
signal_write: CostPerPage<GearPage>
First write page access cost.
signal_write_after_read: CostPerPage<GearPage>
First write access cost for page, which has been already read accessed.
host_func_read: CostPerPage<GearPage>
First read page access cost from host function call.
host_func_write: CostPerPage<GearPage>
First write page access cost from host function call.
host_func_write_after_read: CostPerPage<GearPage>
First write page access cost from host function call.
load_page_storage_data: CostPerPage<GearPage>
Loading page data from storage cost.
Trait Implementations§
Source§impl Clone for LazyPagesWeights
impl Clone for LazyPagesWeights
Source§fn clone(&self) -> LazyPagesWeights
fn clone(&self) -> LazyPagesWeights
Returns a duplicate 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 LazyPagesWeights
impl Debug for LazyPagesWeights
Source§impl Decode for LazyPagesWeights
impl Decode for LazyPagesWeights
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for LazyPagesWeights
impl Default for LazyPagesWeights
Source§fn default() -> LazyPagesWeights
fn default() -> LazyPagesWeights
Returns the “default value” for a type. Read more
Source§impl Encode for LazyPagesWeights
impl Encode for LazyPagesWeights
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl PartialEq for LazyPagesWeights
impl PartialEq for LazyPagesWeights
impl EncodeLike for LazyPagesWeights
impl Eq for LazyPagesWeights
impl StructuralPartialEq for LazyPagesWeights
Auto Trait Implementations§
impl Freeze for LazyPagesWeights
impl RefUnwindSafe for LazyPagesWeights
impl Send for LazyPagesWeights
impl Sync for LazyPagesWeights
impl Unpin for LazyPagesWeights
impl UnwindSafe for LazyPagesWeights
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