#[repr(C)]pub struct HotAccountMeta { /* private fields */ }
Expand description
The storage and in-memory representation of the metadata entry for a hot account.
Trait Implementations§
source§impl Clone for HotAccountMeta
impl Clone for HotAccountMeta
source§fn clone(&self) -> HotAccountMeta
fn clone(&self) -> HotAccountMeta
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HotAccountMeta
impl Debug for HotAccountMeta
source§impl PartialEq for HotAccountMeta
impl PartialEq for HotAccountMeta
source§impl TieredAccountMeta for HotAccountMeta
impl TieredAccountMeta for HotAccountMeta
source§fn with_lamports(self, lamports: u64) -> Self
fn with_lamports(self, lamports: u64) -> Self
A builder function that initializes lamports.
source§fn with_account_data_padding(self, padding: u8) -> Self
fn with_account_data_padding(self, padding: u8) -> Self
A builder function that initializes the number of padding bytes for the account data associated with the current meta.
source§fn with_owner_offset(self, owner_offset: OwnerOffset) -> Self
fn with_owner_offset(self, owner_offset: OwnerOffset) -> Self
A builder function that initializes the owner’s index.
source§fn with_account_data_size(self, _account_data_size: u64) -> Self
fn with_account_data_size(self, _account_data_size: u64) -> Self
A builder function that initializes the account data size.
source§fn with_flags(self, flags: &AccountMetaFlags) -> Self
fn with_flags(self, flags: &AccountMetaFlags) -> Self
A builder function that initializes the AccountMetaFlags of the current meta.
source§fn account_data_padding(&self) -> u8
fn account_data_padding(&self) -> u8
Returns the number of padding bytes for the associated account data
source§fn owner_offset(&self) -> OwnerOffset
fn owner_offset(&self) -> OwnerOffset
Returns the index to the accounts’ owner in the current AccountsFile.
source§fn flags(&self) -> &AccountMetaFlags
fn flags(&self) -> &AccountMetaFlags
Returns the AccountMetaFlags of the current meta.
Always returns false as HotAccountMeta does not support multiple meta entries sharing the same account block.
source§fn rent_epoch(&self, account_block: &[u8]) -> Option<Epoch>
fn rent_epoch(&self, account_block: &[u8]) -> Option<Epoch>
Returns the epoch that this account will next owe rent by parsing the specified account block. None will be returned if this account does not persist this optional field.
source§fn account_hash<'a>(&self, account_block: &'a [u8]) -> Option<&'a AccountHash>
fn account_hash<'a>(&self, account_block: &'a [u8]) -> Option<&'a AccountHash>
Returns the account hash by parsing the specified account block. None will be returned if this account does not persist this optional field.
source§fn optional_fields_offset(&self, account_block: &[u8]) -> usize
fn optional_fields_offset(&self, account_block: &[u8]) -> usize
Returns the offset of the optional fields based on the specified account block.
source§fn account_data_size(&self, account_block: &[u8]) -> usize
fn account_data_size(&self, account_block: &[u8]) -> usize
Returns the length of the data associated to this account based on the specified account block.
impl Copy for HotAccountMeta
impl Eq for HotAccountMeta
impl Pod for HotAccountMeta
impl StructuralPartialEq for HotAccountMeta
Auto Trait Implementations§
impl Freeze for HotAccountMeta
impl RefUnwindSafe for HotAccountMeta
impl Send for HotAccountMeta
impl Sync for HotAccountMeta
impl Unpin for HotAccountMeta
impl UnwindSafe for HotAccountMeta
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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