Enum solana_sdk::compute_budget::ComputeBudgetInstruction [−][src]
Expand description
Compute Budget Instructions
Variants
RequestUnits(u32)
Request a specific maximum number of compute units the transaction is allowed to consume.
Tuple Fields of RequestUnits
0: u32
RequestHeapFrame(u32)
Request a specific transaction-wide program heap frame size in bytes. The value requested must be a multiple of 1024. This new heap frame size applies to each program executed, including all calls to CPIs.
Tuple Fields of RequestHeapFrame
0: u32
Trait Implementations
impl BorshDeserialize for ComputeBudgetInstruction where
u32: BorshDeserialize,
u32: BorshDeserialize,
impl BorshDeserialize for ComputeBudgetInstruction where
u32: BorshDeserialize,
u32: BorshDeserialize,
Get the name of the type without brackets.
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
impl BorshSerialize for ComputeBudgetInstruction where
u32: BorshSerialize,
u32: BorshSerialize,
impl BorshSerialize for ComputeBudgetInstruction where
u32: BorshSerialize,
u32: BorshSerialize,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ComputeBudgetInstruction
impl Send for ComputeBudgetInstruction
impl Sync for ComputeBudgetInstruction
impl Unpin for ComputeBudgetInstruction
impl UnwindSafe for ComputeBudgetInstruction
Blanket Implementations
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more