Struct openethereum::cache::CacheConfig
source · [−]Expand description
Configuration for application cache sizes. All values are represented in MB.
Fields
db: u32
Size of rocksDB cache. Almost all goes to the state column.
blockchain: u32
Size of blockchain cache.
queue: u32
Size of transaction queue cache.
traces: u32
Size of traces cache.
state: u32
Size of the state cache.
Implementations
sourceimpl CacheConfig
impl CacheConfig
sourcepub fn new_with_total_cache_size(total: u32) -> Self
pub fn new_with_total_cache_size(total: u32) -> Self
Creates new cache config with cumulative size equal total
.
sourcepub fn new(db: u32, blockchain: u32, queue: u32, state: u32) -> Self
pub fn new(db: u32, blockchain: u32, queue: u32, state: u32) -> Self
Creates new cache config with gitven details.
sourcepub fn db_cache_size(&self) -> u32
pub fn db_cache_size(&self) -> u32
Size of db cache.
sourcepub fn blockchain(&self) -> u32
pub fn blockchain(&self) -> u32
Size of the blockchain cache.
sourcepub fn jump_tables(&self) -> u32
pub fn jump_tables(&self) -> u32
Size of the jump-tables cache.
Trait Implementations
sourceimpl Debug for CacheConfig
impl Debug for CacheConfig
sourceimpl Default for CacheConfig
impl Default for CacheConfig
sourceimpl PartialEq<CacheConfig> for CacheConfig
impl PartialEq<CacheConfig> for CacheConfig
sourcefn eq(&self, other: &CacheConfig) -> bool
fn eq(&self, other: &CacheConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CacheConfig) -> bool
fn ne(&self, other: &CacheConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for CacheConfig
Auto Trait Implementations
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more