Enum solana_runtime::accounts_db::LoadedAccount [−][src]
pub enum LoadedAccount<'a> { Stored(StoredAccountMeta<'a>), Cached((Pubkey, Cow<'a, CachedAccount>)), }
Variants
Stored(StoredAccountMeta<'a>)
Cached((Pubkey, Cow<'a, CachedAccount>))
Implementations
impl<'a> LoadedAccount<'a>
[src]
impl<'a> LoadedAccount<'a>
[src]pub fn owner(&self) -> &Pubkey
[src]
pub fn executable(&self) -> bool
[src]
pub fn loaded_hash(&self) -> Hash
[src]
pub fn pubkey(&self) -> &Pubkey
[src]
pub fn write_version(&self) -> StoredMetaWriteVersion
[src]
pub fn compute_hash(&self, slot: Slot, pubkey: &Pubkey) -> Hash
[src]
pub fn stored_size(&self) -> usize
[src]
pub fn lamports(&self) -> u64
[src]
pub fn take_account(self) -> AccountSharedData
[src]
pub fn is_cached(&self) -> bool
[src]
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
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,