Struct solana_accounts_db::tiered_storage::meta::AccountMetaFlags
source · #[repr(C)]pub struct AccountMetaFlags { /* private fields */ }
Expand description
The struct that handles the account meta flags.
Implementations§
source§impl AccountMetaFlags
impl AccountMetaFlags
sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl AccountMetaFlags
impl AccountMetaFlags
sourcepub fn has_rent_epoch(&self) -> <bool as Specifier>::InOut
pub fn has_rent_epoch(&self) -> <bool as Specifier>::InOut
Returns the value of has_rent_epoch. whether the account meta has rent epoch
sourcepub fn has_rent_epoch_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_rent_epoch_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_rent_epoch.
#Errors
If the returned value contains an invalid bit pattern for has_rent_epoch. whether the account meta has rent epoch
sourcepub fn with_has_rent_epoch(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_rent_epoch(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_rent_epoch set to the given value.
#Panics
If the given value is out of bounds for has_rent_epoch. whether the account meta has rent epoch
sourcepub fn with_has_rent_epoch_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_has_rent_epoch_checked( self, new_val: <bool as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_rent_epoch set to the given value.
#Errors
If the given value is out of bounds for has_rent_epoch. whether the account meta has rent epoch
sourcepub fn set_has_rent_epoch(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_rent_epoch(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_rent_epoch to the given value.
#Panics
If the given value is out of bounds for has_rent_epoch. whether the account meta has rent epoch
sourcepub fn set_has_rent_epoch_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_has_rent_epoch_checked( &mut self, new_val: <bool as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of has_rent_epoch to the given value.
#Errors
If the given value is out of bounds for has_rent_epoch. whether the account meta has rent epoch
sourcepub fn has_account_hash(&self) -> <bool as Specifier>::InOut
pub fn has_account_hash(&self) -> <bool as Specifier>::InOut
Returns the value of has_account_hash. whether the account meta has account hash
sourcepub fn has_account_hash_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_account_hash_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_account_hash.
#Errors
If the returned value contains an invalid bit pattern for has_account_hash. whether the account meta has account hash
sourcepub fn with_has_account_hash(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_account_hash(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_account_hash set to the given value.
#Panics
If the given value is out of bounds for has_account_hash. whether the account meta has account hash
sourcepub fn with_has_account_hash_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_has_account_hash_checked( self, new_val: <bool as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_account_hash set to the given value.
#Errors
If the given value is out of bounds for has_account_hash. whether the account meta has account hash
sourcepub fn set_has_account_hash(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_account_hash(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_account_hash to the given value.
#Panics
If the given value is out of bounds for has_account_hash. whether the account meta has account hash
sourcepub fn set_has_account_hash_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_has_account_hash_checked( &mut self, new_val: <bool as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of has_account_hash to the given value.
#Errors
If the given value is out of bounds for has_account_hash. whether the account meta has account hash
sourcepub fn has_write_version(&self) -> <bool as Specifier>::InOut
pub fn has_write_version(&self) -> <bool as Specifier>::InOut
Returns the value of has_write_version. whether the account meta has write version
sourcepub fn has_write_version_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_write_version_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_write_version.
#Errors
If the returned value contains an invalid bit pattern for has_write_version. whether the account meta has write version
sourcepub fn with_has_write_version(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_write_version(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_write_version set to the given value.
#Panics
If the given value is out of bounds for has_write_version. whether the account meta has write version
sourcepub fn with_has_write_version_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_has_write_version_checked( self, new_val: <bool as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_write_version set to the given value.
#Errors
If the given value is out of bounds for has_write_version. whether the account meta has write version
sourcepub fn set_has_write_version(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_write_version(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_write_version to the given value.
#Panics
If the given value is out of bounds for has_write_version. whether the account meta has write version
sourcepub fn set_has_write_version_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_has_write_version_checked( &mut self, new_val: <bool as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of has_write_version to the given value.
#Errors
If the given value is out of bounds for has_write_version. whether the account meta has write version
source§impl AccountMetaFlags
impl AccountMetaFlags
pub fn new_from(optional_fields: &AccountMetaOptionalFields) -> Self
Trait Implementations§
source§impl Clone for AccountMetaFlags
impl Clone for AccountMetaFlags
source§fn clone(&self) -> AccountMetaFlags
fn clone(&self) -> AccountMetaFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccountMetaFlags
impl Debug for AccountMetaFlags
source§impl Default for AccountMetaFlags
impl Default for AccountMetaFlags
source§fn default() -> AccountMetaFlags
fn default() -> AccountMetaFlags
source§impl PartialEq for AccountMetaFlags
impl PartialEq for AccountMetaFlags
source§fn eq(&self, other: &AccountMetaFlags) -> bool
fn eq(&self, other: &AccountMetaFlags) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for AccountMetaFlags
impl Eq for AccountMetaFlags
impl StructuralEq for AccountMetaFlags
impl StructuralPartialEq for AccountMetaFlags
Auto Trait Implementations§
impl RefUnwindSafe for AccountMetaFlags
impl Send for AccountMetaFlags
impl Sync for AccountMetaFlags
impl Unpin for AccountMetaFlags
impl UnwindSafe for AccountMetaFlags
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.