Struct solana_runtime::bucket_map_holder::BucketMapHolder
source · [−]pub struct BucketMapHolder<T: IndexValue> {
pub disk: Option<BucketMap<SlotT<T>>>,
pub count_ages_flushed: AtomicUsize,
pub age: AtomicU8,
pub stats: BucketMapHolderStats,
pub wait_dirty_or_aged: Arc<WaitableCondvar>,
pub threads: usize,
pub mem_budget_mb: Option<usize>,
/* private fields */
}
Fields
disk: Option<BucketMap<SlotT<T>>>
count_ages_flushed: AtomicUsize
age: AtomicU8
stats: BucketMapHolderStats
wait_dirty_or_aged: Arc<WaitableCondvar>
threads: usize
mem_budget_mb: Option<usize>
Implementations
used by bg processes to determine # active threads and how aggressively to flush
startup=true causes: in mem to act in a way that flushes to disk asap startup=false is ‘normal’ operation
have all buckets been flushed at the current age?
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for BucketMapHolder<T>
impl<T> Send for BucketMapHolder<T>
impl<T> Sync for BucketMapHolder<T>
impl<T> Unpin for BucketMapHolder<T>
impl<T> !UnwindSafe for BucketMapHolder<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more