Enum solana_runtime::accounts_db::AccountShrinkThreshold [−][src]
pub enum AccountShrinkThreshold {
TotalSpace {
shrink_ratio: f64,
},
IndividalStore {
shrink_ratio: f64,
},
}
Variants
Measure the total space sparseness across all candididates And select the candidiates by using the top sparse account storage entries to shrink. The value is the overall shrink threshold measured as ratio of the total live bytes over the total bytes.
Fields of TotalSpace
shrink_ratio: f64
Use the following option to shrink all stores whose alive ratio is below the specified threshold.
Fields of IndividalStore
shrink_ratio: f64
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AccountShrinkThreshold
impl Send for AccountShrinkThreshold
impl Sync for AccountShrinkThreshold
impl Unpin for AccountShrinkThreshold
impl UnwindSafe for AccountShrinkThreshold
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self