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: bool,
pub num_background_threads: Option<NonZeroUsize>,
pub num_foreground_threads: Option<NonZeroUsize>,
pub num_hash_threads: Option<NonZeroUsize>,
}Fields§
§index: Option<AccountsIndexConfig>§account_indexes: Option<AccountSecondaryIndexes>§base_working_path: Option<PathBuf>Base directory for various necessary files
shrink_paths: Option<Vec<PathBuf>>§shrink_ratio: AccountShrinkThreshold§read_cache_limit_bytes: Option<(usize, usize)>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>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>§ancient_append_vec_offset: Option<i64>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>§max_ancient_storages: Option<usize>§skip_initial_hash_calc: bool§exhaustively_verify_refcounts: bool§partitioned_epoch_rewards_config: PartitionedEpochRewardsConfig§storage_access: StorageAccess§scan_filter_for_shrinking: ScanFilter§mark_obsolete_accounts: bool§num_background_threads: Option<NonZeroUsize>Number of threads for background operations (`thread_pool_background’)
num_foreground_threads: Option<NonZeroUsize>Number of threads for foreground operations (thread_pool_foreground)
num_hash_threads: Option<NonZeroUsize>Number of threads for background accounts hashing
Trait Implementations§
Source§impl Clone for AccountsDbConfig
impl Clone for AccountsDbConfig
Source§fn clone(&self) -> AccountsDbConfig
fn clone(&self) -> AccountsDbConfig
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 AccountsDbConfig
impl Debug for AccountsDbConfig
Source§impl Default for AccountsDbConfig
impl Default for AccountsDbConfig
Source§fn default() -> AccountsDbConfig
fn default() -> AccountsDbConfig
Returns the “default value” for a type. Read more
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
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