#[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 final_rent_epoch(&self, account_block: &[u8]) -> Epoch
fn final_rent_epoch(&self, account_block: &[u8]) -> Epoch
Returns the epoch that this account will next owe rent by parsing the specified account block. RENT_EXEMPT_RENT_EPOCH will be returned if the account is rent-exempt.
For a zero-lamport account, Epoch::default() will be returned to default states of an AccountSharedData.
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§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