pub enum ComputeBudgetInstruction {
Unused,
RequestHeapFrame {
bytes: u32,
},
SetComputeUnitLimit {
units: u32,
},
SetComputeUnitPrice {
micro_lamports: u64,
},
SetLoadedAccountsDataSizeLimit {
bytes: u32,
},
}Expand description
ComputeBudget program instructions.
The ComputeBudget program uses a 1-byte discriminator (variant index). Each variant’s discriminator is its position in this enum (0, 1, 2, …).
Variants§
Unused
Deprecated variant (index 0)
RequestHeapFrame
Request a specific heap frame size (index 1)
SetComputeUnitLimit
Set compute unit limit for the transaction (index 2)
SetComputeUnitPrice
Set compute unit price in micro-lamports (index 3)
SetLoadedAccountsDataSizeLimit
Set loaded accounts data size limit (index 4)
Auto Trait Implementations§
impl Freeze for ComputeBudgetInstruction
impl RefUnwindSafe for ComputeBudgetInstruction
impl Send for ComputeBudgetInstruction
impl Sync for ComputeBudgetInstruction
impl Unpin for ComputeBudgetInstruction
impl UnwindSafe for ComputeBudgetInstruction
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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