pub struct SnapshotPackage {Show 14 fields
pub snapshot_kind: SnapshotKind,
pub slot: Slot,
pub block_height: Slot,
pub hash: SnapshotHash,
pub snapshot_storages: Vec<Arc<AccountStorageEntry>>,
pub status_cache_slot_deltas: Vec<BankSlotDelta>,
pub bank_fields_to_serialize: BankFieldsToSerialize,
pub bank_hash_stats: BankHashStats,
pub accounts_delta_hash: AccountsDeltaHash,
pub accounts_hash: AccountsHash,
pub epoch_accounts_hash: Option<EpochAccountsHash>,
pub write_version: StoredMetaWriteVersion,
pub bank_incremental_snapshot_persistence: Option<BankIncrementalSnapshotPersistence>,
pub enqueued: Instant,
}
Expand description
This struct packages up fields to send from AccountsHashVerifier to SnapshotPackagerService
Fields§
§snapshot_kind: SnapshotKind
§slot: Slot
§block_height: Slot
§hash: SnapshotHash
§snapshot_storages: Vec<Arc<AccountStorageEntry>>
§status_cache_slot_deltas: Vec<BankSlotDelta>
§bank_fields_to_serialize: BankFieldsToSerialize
§bank_hash_stats: BankHashStats
§accounts_delta_hash: AccountsDeltaHash
§accounts_hash: AccountsHash
§epoch_accounts_hash: Option<EpochAccountsHash>
§write_version: StoredMetaWriteVersion
§bank_incremental_snapshot_persistence: Option<BankIncrementalSnapshotPersistence>
§enqueued: Instant
The instant this snapshot package was sent to the queue. Used to track how long snapshot packages wait before handling.
Implementations§
Source§impl SnapshotPackage
impl SnapshotPackage
pub fn new( accounts_package: AccountsPackage, accounts_hash_kind: AccountsHashKind, bank_incremental_snapshot_persistence: Option<BankIncrementalSnapshotPersistence>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SnapshotPackage
impl !RefUnwindSafe for SnapshotPackage
impl Send for SnapshotPackage
impl Sync for SnapshotPackage
impl Unpin for SnapshotPackage
impl !UnwindSafe for SnapshotPackage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more