pub struct ExecutionConfig {
pub run_mode: RunMode,
pub cost_budget: u64,
pub version: TealVersion,
pub group_index: usize,
pub group_size: usize,
}
Expand description
Execution configuration
Fields§
§run_mode: RunMode
§cost_budget: u64
§version: TealVersion
§group_index: usize
§group_size: usize
Implementations§
Source§impl ExecutionConfig
impl ExecutionConfig
Sourcepub fn new(version: TealVersion) -> Self
pub fn new(version: TealVersion) -> Self
Create a new execution configuration with defaults
Sourcepub fn application(version: TealVersion) -> Self
pub fn application(version: TealVersion) -> Self
Create configuration for application mode
Sourcepub fn with_cost_budget(self, budget: u64) -> Self
pub fn with_cost_budget(self, budget: u64) -> Self
Set the cost budget
Sourcepub fn with_group(self, index: usize, size: usize) -> Self
pub fn with_group(self, index: usize, size: usize) -> Self
Set the group configuration
Sourcepub fn with_run_mode(self, run_mode: RunMode) -> Self
pub fn with_run_mode(self, run_mode: RunMode) -> Self
Set the run mode
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
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 moreAuto Trait Implementations§
impl Freeze for ExecutionConfig
impl RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl UnwindSafe for ExecutionConfig
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