Struct casper_node::StorageConfig
source · pub struct StorageConfig {
pub path: PathBuf,
pub max_block_store_size: usize,
pub max_deploy_store_size: usize,
pub max_deploy_metadata_store_size: usize,
pub max_state_store_size: usize,
pub enable_mem_deduplication: bool,
pub mem_pool_prune_interval: u16,
}
Expand description
On-disk storage configuration.
Fields§
§path: PathBuf
The path to the folder where any files created or read by the storage component will exist.
If the folder doesn’t exist, it and any required parents will be created.
max_block_store_size: usize
The maximum size of the database to use for the block store.
The size should be a multiple of the OS page size.
max_deploy_store_size: usize
The maximum size of the database to use for the deploy store.
The size should be a multiple of the OS page size.
max_deploy_metadata_store_size: usize
The maximum size of the database to use for the deploy metadata store.
The size should be a multiple of the OS page size.
max_state_store_size: usize
The maximum size of the database to use for the component state store.
The size should be a multiple of the OS page size.
enable_mem_deduplication: bool
Whether or not memory deduplication is enabled.
mem_pool_prune_interval: u16
How many loads before memory duplication checks for dead references.
Trait Implementations§
source§impl DataSize for Config
impl DataSize for Config
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
source§fn estimate_detailed_heap_size(&self) -> MemUsageNode
fn estimate_detailed_heap_size(&self) -> MemUsageNode
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.