Struct unc_vm_runner::logic::TrieNodesCount
source · pub struct TrieNodesCount {
pub db_reads: u64,
pub mem_reads: u64,
}Expand description
Counts trie nodes reads during tx/receipt execution for proper storage costs charging.
Fields§
§db_reads: u64Potentially expensive trie node reads which are served from disk in the worst case.
mem_reads: u64Cheap trie node reads which are guaranteed to be served from RAM.
Implementations§
source§impl TrieNodesCount
impl TrieNodesCount
sourcepub fn checked_sub(self, other: &Self) -> Option<Self>
pub fn checked_sub(self, other: &Self) -> Option<Self>
Used to determine the number of trie nodes charged during some operation.
Trait Implementations§
source§impl Debug for TrieNodesCount
impl Debug for TrieNodesCount
source§impl PartialEq for TrieNodesCount
impl PartialEq for TrieNodesCount
source§fn eq(&self, other: &TrieNodesCount) -> bool
fn eq(&self, other: &TrieNodesCount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TrieNodesCount
Auto Trait Implementations§
impl Freeze for TrieNodesCount
impl RefUnwindSafe for TrieNodesCount
impl Send for TrieNodesCount
impl Sync for TrieNodesCount
impl Unpin for TrieNodesCount
impl UnwindSafe for TrieNodesCount
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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