Struct solana_runtime::append_vec::StoredMeta
source · pub struct StoredMeta {
pub write_version: StoredMetaWriteVersion,
pub pubkey: Pubkey,
pub data_len: u64,
}
Expand description
Meta contains enough context to recover the index from storage itself This struct will be backed by mmaped and snapshotted data files. So the data layout must be stable and consistent across the entire cluster!
Fields§
§write_version: StoredMetaWriteVersion
global write version
pubkey: Pubkey
key for the account
data_len: u64
Trait Implementations§
source§impl Clone for StoredMeta
impl Clone for StoredMeta
source§fn clone(&self) -> StoredMeta
fn clone(&self) -> StoredMeta
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StoredMeta
impl Debug for StoredMeta
source§impl PartialEq<StoredMeta> for StoredMeta
impl PartialEq<StoredMeta> for StoredMeta
source§fn eq(&self, other: &StoredMeta) -> bool
fn eq(&self, other: &StoredMeta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StoredMeta
impl StructuralEq for StoredMeta
impl StructuralPartialEq for StoredMeta
Auto Trait Implementations§
impl RefUnwindSafe for StoredMeta
impl Send for StoredMeta
impl Sync for StoredMeta
impl Unpin for StoredMeta
impl UnwindSafe for StoredMeta
Blanket Implementations§
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.