pub struct TransactionConfigMask(pub u32);Expand description
Bitmask indicating which configuration values are present in a V1 transaction.
Each bit (or bit pair) corresponds to a specific configuration field. The config values array contains entries only for fields whose bits are set.
Tuple Fields§
§0: u32Implementations§
Source§impl TransactionConfigMask
impl TransactionConfigMask
Sourcepub const PRIORITY_FEE: u32 = 0b11
Available on non-target_os=solana only.
pub const PRIORITY_FEE: u32 = 0b11
target_os=solana only.Mask for priority fee config.
Bits 0-1 (requires both bits set, 8 bytes as u64 LE).
Sourcepub const COMPUTE_UNIT_LIMIT: u32 = 0b100
Available on non-target_os=solana only.
pub const COMPUTE_UNIT_LIMIT: u32 = 0b100
target_os=solana only.Mask for compute unit limit
Bit 2 (4 bytes as u32 LE).
Sourcepub const LOADED_ACCOUNTS_DATA_SIZE: u32 = 0b1000
Available on non-target_os=solana only.
pub const LOADED_ACCOUNTS_DATA_SIZE: u32 = 0b1000
target_os=solana only.Mask for loaded accounts data size limit
Bit 3 (4 bytes as u32 LE).
Sourcepub const HEAP_SIZE: u32 = 0b10000
Available on non-target_os=solana only.
pub const HEAP_SIZE: u32 = 0b10000
target_os=solana only.Mask for requested heap size.
Bit 4 (4 bytes as u32 LE).
Sourcepub const KNOWN_BITS: u32
Available on non-target_os=solana only.
pub const KNOWN_BITS: u32
target_os=solana only.Mask of all known/supported bits (bits 0-4).
pub const fn new(mask: u32) -> Self
target_os=solana only.Sourcepub const fn has_unknown_bits(&self) -> bool
Available on non-target_os=solana only.
pub const fn has_unknown_bits(&self) -> bool
target_os=solana only.Returns `true`` if any unknown bits are set.
An unknown bit is any bit that is not defined in KNOWN_BITS.
pub const fn has_priority_fee(&self) -> bool
target_os=solana only.Sourcepub const fn has_invalid_priority_fee_bits(&self) -> bool
Available on non-target_os=solana only.
pub const fn has_invalid_priority_fee_bits(&self) -> bool
target_os=solana only.Returns true if only one of the two priority fee bits is set (invalid).
pub const fn has_compute_unit_limit(&self) -> bool
target_os=solana only.pub const fn has_loaded_accounts_data_size(&self) -> bool
target_os=solana only.pub const fn has_heap_size(&self) -> bool
target_os=solana only.Sourcepub const fn size_of_config(&self) -> usize
Available on non-target_os=solana only.
pub const fn size_of_config(&self) -> usize
target_os=solana only.Total size in bytes required to store the config values.
Trait Implementations§
Source§impl AbiExample for TransactionConfigMask
Available on non-target_os=solana only.
impl AbiExample for TransactionConfigMask
target_os=solana only.Source§impl Clone for TransactionConfigMask
Available on non-target_os=solana only.
impl Clone for TransactionConfigMask
target_os=solana only.Source§fn clone(&self) -> TransactionConfigMask
fn clone(&self) -> TransactionConfigMask
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransactionConfigMask
Available on non-target_os=solana only.
impl Debug for TransactionConfigMask
target_os=solana only.Source§impl Default for TransactionConfigMask
Available on non-target_os=solana only.
impl Default for TransactionConfigMask
target_os=solana only.Source§fn default() -> TransactionConfigMask
fn default() -> TransactionConfigMask
Source§impl From<&TransactionConfig> for TransactionConfigMask
Available on non-target_os=solana only.
impl From<&TransactionConfig> for TransactionConfigMask
target_os=solana only.Source§fn from(config: &TransactionConfig) -> Self
fn from(config: &TransactionConfig) -> Self
Source§impl From<TransactionConfig> for TransactionConfigMask
Available on non-target_os=solana only.
impl From<TransactionConfig> for TransactionConfigMask
target_os=solana only.Source§fn from(config: TransactionConfig) -> Self
fn from(config: TransactionConfig) -> Self
Source§impl PartialEq for TransactionConfigMask
Available on non-target_os=solana only.
impl PartialEq for TransactionConfigMask
target_os=solana only.impl Copy for TransactionConfigMask
target_os=solana only.impl Eq for TransactionConfigMask
target_os=solana only.impl StructuralPartialEq for TransactionConfigMask
target_os=solana only.Auto Trait Implementations§
impl Freeze for TransactionConfigMask
impl RefUnwindSafe for TransactionConfigMask
impl Send for TransactionConfigMask
impl Sync for TransactionConfigMask
impl Unpin for TransactionConfigMask
impl UnsafeUnpin for TransactionConfigMask
impl UnwindSafe for TransactionConfigMask
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> 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<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