Enum solana_runtime::accounts_db::LoadedAccount
source · pub enum LoadedAccount<'a> {
Stored(StoredAccountMeta<'a>),
Cached(Cow<'a, CachedAccount>),
}
Variants
Stored(StoredAccountMeta<'a>)
Cached(Cow<'a, CachedAccount>)
Implementations
sourceimpl<'a> LoadedAccount<'a>
impl<'a> LoadedAccount<'a>
pub fn loaded_hash(&self) -> Hash
pub fn pubkey(&self) -> &Pubkey
pub fn write_version(&self) -> StoredMetaWriteVersion
pub fn compute_hash(&self, slot: Slot, pubkey: &Pubkey) -> Hash
pub fn stored_size(&self) -> usize
pub fn take_account(self) -> AccountSharedData
pub fn is_cached(&self) -> bool
Trait Implementations
sourceimpl<'a> ReadableAccount for LoadedAccount<'a>
impl<'a> ReadableAccount for LoadedAccount<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LoadedAccount<'a>
impl<'a> Send for LoadedAccount<'a>
impl<'a> Sync for LoadedAccount<'a>
impl<'a> Unpin for LoadedAccount<'a>
impl<'a> UnwindSafe for LoadedAccount<'a>
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more