Struct solana_runtime::account_storage::ShrinkInProgress
source · pub(crate) struct ShrinkInProgress<'a> {
storage: &'a AccountStorage,
old_store: Arc<AccountStorageEntry>,
new_store: Arc<AccountStorageEntry>,
slot: Slot,
}
Expand description
exists while there is a shrink in progress keeps track of the ‘new_store’ being created and the ‘old_store’ being replaced.
Fields§
§storage: &'a AccountStorage
§old_store: Arc<AccountStorageEntry>
old store which will be shrunk and replaced
new_store: Arc<AccountStorageEntry>
newly shrunk store with a subset of contents from ‘old_store’
slot: Slot
Implementations§
source§impl<'a> ShrinkInProgress<'a>
impl<'a> ShrinkInProgress<'a>
pub(crate) fn new_storage(&self) -> &Arc<AccountStorageEntry>
pub(crate) fn old_storage(&self) -> &Arc<AccountStorageEntry>
Trait Implementations§
source§impl<'a> Debug for ShrinkInProgress<'a>
impl<'a> Debug for ShrinkInProgress<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShrinkInProgress<'a>
impl<'a> Send for ShrinkInProgress<'a>
impl<'a> Sync for ShrinkInProgress<'a>
impl<'a> Unpin for ShrinkInProgress<'a>
impl<'a> !UnwindSafe for ShrinkInProgress<'a>
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