Struct sp_weights::RuntimeDbWeight
source · pub struct RuntimeDbWeight {
pub read: u64,
pub write: u64,
}
Expand description
The weight of database operations that the runtime can invoke.
NOTE: This is currently only measured in computational time, and will probably be updated all together once proof size is accounted for.
Fields§
§read: u64
§write: u64
Implementations§
Trait Implementations§
source§impl Clone for RuntimeDbWeight
impl Clone for RuntimeDbWeight
source§fn clone(&self) -> RuntimeDbWeight
fn clone(&self) -> RuntimeDbWeight
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 RuntimeDbWeight
impl Debug for RuntimeDbWeight
source§impl Decode for RuntimeDbWeight
impl Decode for RuntimeDbWeight
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 RuntimeDbWeight
impl Default for RuntimeDbWeight
source§fn default() -> RuntimeDbWeight
fn default() -> RuntimeDbWeight
Returns the “default value” for a type. Read more
source§impl Encode for RuntimeDbWeight
impl Encode for RuntimeDbWeight
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 RuntimeDbWeight
impl PartialEq for RuntimeDbWeight
source§fn eq(&self, other: &RuntimeDbWeight) -> bool
fn eq(&self, other: &RuntimeDbWeight) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeInfo for RuntimeDbWeight
impl TypeInfo for RuntimeDbWeight
impl Copy for RuntimeDbWeight
impl EncodeLike for RuntimeDbWeight
impl Eq for RuntimeDbWeight
impl StructuralPartialEq for RuntimeDbWeight
Auto Trait Implementations§
impl Freeze for RuntimeDbWeight
impl RefUnwindSafe for RuntimeDbWeight
impl Send for RuntimeDbWeight
impl Sync for RuntimeDbWeight
impl Unpin for RuntimeDbWeight
impl UnwindSafe for RuntimeDbWeight
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
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.