pub struct AccountMapEntryMeta {
pub dirty: AtomicBool,
pub age: AtomicU8,
}
Expand description
data per entry in in-mem accounts index used to keep track of consistency with disk index
Fields§
§dirty: AtomicBool
true if entry in in-mem idx has changes and needs to be written to disk
age: AtomicU8
‘age’ at which this entry should be purged from the cache (implements lru)
Implementations§
source§impl AccountMapEntryMeta
impl AccountMapEntryMeta
pub fn new_dirty<T: IndexValue>(storage: &Arc<BucketMapHolder<T>>) -> Self
pub fn new_clean<T: IndexValue>(storage: &Arc<BucketMapHolder<T>>) -> Self
Trait Implementations§
source§impl Debug for AccountMapEntryMeta
impl Debug for AccountMapEntryMeta
source§impl Default for AccountMapEntryMeta
impl Default for AccountMapEntryMeta
source§fn default() -> AccountMapEntryMeta
fn default() -> AccountMapEntryMeta
Returns the “default value” for a type. Read more