pub enum ComputeUnitLimit {
Default,
Static(u32),
Simulated,
}
Variants§
Default
Do not include a compute unit limit instruction, which will give the
transaction a compute unit limit of:
min(1_400_000, 200_000 * (num_top_level_instructions - num_compute_budget_instructions))
Static(u32)
Use a static predefined limit
Simulated
Simulate the transaction to find out the compute unit usage
Trait Implementations§
Source§impl Clone for ComputeUnitLimit
impl Clone for ComputeUnitLimit
Source§fn clone(&self) -> ComputeUnitLimit
fn clone(&self) -> ComputeUnitLimit
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComputeUnitLimit
impl Debug for ComputeUnitLimit
Source§impl PartialEq for ComputeUnitLimit
impl PartialEq for ComputeUnitLimit
impl Copy for ComputeUnitLimit
impl StructuralPartialEq for ComputeUnitLimit
Auto Trait Implementations§
impl Freeze for ComputeUnitLimit
impl RefUnwindSafe for ComputeUnitLimit
impl Send for ComputeUnitLimit
impl Sync for ComputeUnitLimit
impl Unpin for ComputeUnitLimit
impl UnwindSafe for ComputeUnitLimit
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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