Struct solana_runtime::serde_snapshot::newer::Context
source · pub(super) struct Context {}
Trait Implementations§
source§impl PartialEq<Context> for Context
impl PartialEq<Context> for Context
source§impl<'a> TypeContext<'a> for Context
impl<'a> TypeContext<'a> for Context
source§fn reserialize_bank_fields_with_hash<R, W>(
stream_reader: &mut BufReader<R>,
stream_writer: &mut BufWriter<W>,
accounts_hash: &AccountsHash,
incremental_snapshot_persistence: Option<&BankIncrementalSnapshotPersistence>
) -> Result<(), Box<ErrorKind>>where
R: Read,
W: Write,
fn reserialize_bank_fields_with_hash<R, W>( stream_reader: &mut BufReader<R>, stream_writer: &mut BufWriter<W>, accounts_hash: &AccountsHash, incremental_snapshot_persistence: Option<&BankIncrementalSnapshotPersistence> ) -> Result<(), Box<ErrorKind>>where R: Read, W: Write,
deserialize the bank from ‘stream_reader’ modify the accounts_hash and incremental_snapshot_persistence reserialize the bank to ‘stream_writer’
type SerializableAccountStorageEntry = SerializableAccountStorageEntry
fn serialize_bank_and_storage<S: Serializer>( serializer: S, serializable_bank: &SerializableBankAndStorage<'a, Self> ) -> Result<S::Ok, S::Error>where Self: Sized,
fn serialize_accounts_db_fields<S: Serializer>( serializer: S, serializable_db: &SerializableAccountsDb<'a, Self> ) -> Result<S::Ok, S::Error>where Self: Sized,
fn deserialize_bank_fields<R>( stream: &mut BufReader<R> ) -> Result<(BankFieldsToDeserialize, AccountsDbFields<SerializableAccountStorageEntry>), Error>where R: Read,
fn deserialize_accounts_db_fields<R>( stream: &mut BufReader<R> ) -> Result<AccountsDbFields<SerializableAccountStorageEntry>, Error>where R: Read,
impl Eq for Context
impl StructuralEq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.