pub struct SnapshotAccountsDbFields<T> {
full_snapshot_accounts_db_fields: AccountsDbFields<T>,
incremental_snapshot_accounts_db_fields: Option<AccountsDbFields<T>>,
}
Expand description
Helper type to wrap AccountsDbFields when reconstructing AccountsDb from either just a full snapshot, or both a full and incremental snapshot
Fields§
§full_snapshot_accounts_db_fields: AccountsDbFields<T>
§incremental_snapshot_accounts_db_fields: Option<AccountsDbFields<T>>
Implementations§
source§impl<T> SnapshotAccountsDbFields<T>
impl<T> SnapshotAccountsDbFields<T>
sourcefn collapse_into(self) -> Result<AccountsDbFields<T>, Error>
fn collapse_into(self) -> Result<AccountsDbFields<T>, Error>
Collapse the SnapshotAccountsDbFields into a single AccountsDbFields. If there is no incremental snapshot, this returns the AccountsDbFields from the full snapshot. Otherwise, use the AccountsDbFields from the incremental snapshot, and a combination of the storages from both the full and incremental snapshots.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for SnapshotAccountsDbFields<T>where T: RefUnwindSafe,
impl<T> Send for SnapshotAccountsDbFields<T>where T: Send,
impl<T> Sync for SnapshotAccountsDbFields<T>where T: Sync,
impl<T> Unpin for SnapshotAccountsDbFields<T>where T: Unpin,
impl<T> UnwindSafe for SnapshotAccountsDbFields<T>where T: UnwindSafe,
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