pub struct CoreStorageConfig {
pub cells_cache_size: ByteSize,
pub drop_interval: u32,
pub store_archives: bool,
pub archives_gc: Option<ArchivesGcConfig>,
pub states_gc: Option<StatesGcConfig>,
pub blocks_gc: Option<BlocksGcConfig>,
pub blocks_cache: BlocksCacheConfig,
pub blob_db: BlobDbConfig,
}Fields§
§cells_cache_size: ByteSizeRuntime cells cache size.
Default: 256 MB.
drop_interval: u32Minimal epoch interval when the state can be reused.
Default: 3.
store_archives: boolWhether to pack blocks into archives.
Default: true.
archives_gc: Option<ArchivesGcConfig>Archives storage config.
Archives are disabled if this field is None.
states_gc: Option<StatesGcConfig>States GC config.
States GC is disabled if this field is None.
blocks_gc: Option<BlocksGcConfig>Blocks GC config.
Blocks GC is disabled if this field is None.
blocks_cache: BlocksCacheConfigBlocks cache config.
blob_db: BlobDbConfigBlob DB config.
Implementations§
Source§impl CoreStorageConfig
impl CoreStorageConfig
pub fn without_gc(self) -> Self
Trait Implementations§
Source§impl Clone for CoreStorageConfig
impl Clone for CoreStorageConfig
Source§fn clone(&self) -> CoreStorageConfig
fn clone(&self) -> CoreStorageConfig
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 CoreStorageConfig
impl Debug for CoreStorageConfig
Source§impl Default for CoreStorageConfig
impl Default for CoreStorageConfig
Source§impl<'de> Deserialize<'de> for CoreStorageConfigwhere
CoreStorageConfig: Default,
impl<'de> Deserialize<'de> for CoreStorageConfigwhere
CoreStorageConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialConfig for CoreStorageConfig
impl PartialConfig for CoreStorageConfig
Auto Trait Implementations§
impl Freeze for CoreStorageConfig
impl RefUnwindSafe for CoreStorageConfig
impl Send for CoreStorageConfig
impl Sync for CoreStorageConfig
impl Unpin for CoreStorageConfig
impl UnwindSafe for CoreStorageConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more