pub struct AccountsDbConfig {Show 20 fields
pub index: Option<AccountsIndexConfig>,
pub account_indexes: Option<AccountSecondaryIndexes>,
pub base_working_path: Option<PathBuf>,
pub shrink_paths: Option<Vec<PathBuf>>,
pub shrink_ratio: AccountShrinkThreshold,
pub read_cache_limit_bytes: Option<(usize, usize)>,
pub read_cache_evict_sample_size: Option<usize>,
pub write_cache_limit_bytes: Option<u64>,
pub ancient_append_vec_offset: Option<i64>,
pub ancient_storage_ideal_size: Option<u64>,
pub max_ancient_storages: Option<usize>,
pub skip_initial_hash_calc: bool,
pub exhaustively_verify_refcounts: bool,
pub partitioned_epoch_rewards_config: PartitionedEpochRewardsConfig,
pub storage_access: StorageAccess,
pub scan_filter_for_shrinking: ScanFilter,
pub mark_obsolete_accounts: MarkObsoleteAccounts,
pub num_background_threads: Option<NonZeroUsize>,
pub num_foreground_threads: Option<NonZeroUsize>,
pub memlock_budget_size: usize,
}agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Fieldsยง
ยงindex: Option<AccountsIndexConfig>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.account_indexes: Option<AccountSecondaryIndexes>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.base_working_path: Option<PathBuf>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Base directory for various necessary files
shrink_paths: Option<Vec<PathBuf>>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.shrink_ratio: AccountShrinkThresholdagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.read_cache_limit_bytes: Option<(usize, usize)>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.The low and high watermark sizes for the read cache, in bytes. If None, defaults will be used.
read_cache_evict_sample_size: Option<usize>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.The number of elements that will be randomly sampled at eviction time, the oldest of which will get evicted.
write_cache_limit_bytes: Option<u64>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.ancient_append_vec_offset: Option<i64>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.if None, ancient append vecs are set to ANCIENT_APPEND_VEC_DEFAULT_OFFSET Some(offset) means include slots up to (max_slot - (slots_per_epoch - โoffsetโ))
ancient_storage_ideal_size: Option<u64>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.max_ancient_storages: Option<usize>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.skip_initial_hash_calc: boolagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.exhaustively_verify_refcounts: boolagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.partitioned_epoch_rewards_config: PartitionedEpochRewardsConfigagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.storage_access: StorageAccessagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.scan_filter_for_shrinking: ScanFilteragave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.mark_obsolete_accounts: MarkObsoleteAccountsagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.num_background_threads: Option<NonZeroUsize>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Number of threads for background operations (`thread_pool_backgroundโ)
num_foreground_threads: Option<NonZeroUsize>agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Number of threads for foreground operations (thread_pool_foreground)
memlock_budget_size: usizeagave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Amount of memory (in bytes) that is allowed to be locked during db operations. On linux itโs verified on start-up with the kernel limits, such that during runtime parts of it can be utilized without panicking.
Trait Implementationsยง
Sourceยงimpl Clone for AccountsDbConfig
impl Clone for AccountsDbConfig
Sourceยงfn clone(&self) -> AccountsDbConfig
fn clone(&self) -> AccountsDbConfig
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for AccountsDbConfig
impl Debug for AccountsDbConfig
Sourceยงimpl Default for AccountsDbConfig
impl Default for AccountsDbConfig
Sourceยงfn default() -> AccountsDbConfig
fn default() -> AccountsDbConfig
Auto Trait Implementationsยง
impl Freeze for AccountsDbConfig
impl RefUnwindSafe for AccountsDbConfig
impl Send for AccountsDbConfig
impl Sync for AccountsDbConfig
impl Unpin for AccountsDbConfig
impl UnwindSafe for AccountsDbConfig
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
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>
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>
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