pub struct ComputeBudgetOptions {
pub units: Option<u32>,
pub heap_bytes: Option<u32>,
}Expand description
Optional compute budget options to prepend to transaction builders.
Fields§
§units: Option<u32>Optional per-transaction compute unit limit.
heap_bytes: Option<u32>Optional requested heap frame size (multiple of 1024).
Trait Implementations§
Source§impl Clone for ComputeBudgetOptions
impl Clone for ComputeBudgetOptions
Source§fn clone(&self) -> ComputeBudgetOptions
fn clone(&self) -> ComputeBudgetOptions
Returns a duplicate 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 ComputeBudgetOptions
impl Debug for ComputeBudgetOptions
Source§impl Default for ComputeBudgetOptions
impl Default for ComputeBudgetOptions
Source§fn default() -> ComputeBudgetOptions
fn default() -> ComputeBudgetOptions
Returns the “default value” for a type. Read more
impl Copy for ComputeBudgetOptions
Auto Trait Implementations§
impl Freeze for ComputeBudgetOptions
impl RefUnwindSafe for ComputeBudgetOptions
impl Send for ComputeBudgetOptions
impl Sync for ComputeBudgetOptions
impl Unpin for ComputeBudgetOptions
impl UnwindSafe for ComputeBudgetOptions
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