pub struct ResourceLeeway {
pub cpu_instructions: u64,
}
Expand description
Contains configuration for how resources will be calculated when simulating transactions.
Fields§
§cpu_instructions: u64
Allow this many extra instructions when budgeting resources.
Trait Implementations§
Source§impl Clone for ResourceLeeway
impl Clone for ResourceLeeway
Source§fn clone(&self) -> ResourceLeeway
fn clone(&self) -> ResourceLeeway
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 moreAuto Trait Implementations§
impl Freeze for ResourceLeeway
impl RefUnwindSafe for ResourceLeeway
impl Send for ResourceLeeway
impl Sync for ResourceLeeway
impl Unpin for ResourceLeeway
impl UnwindSafe for ResourceLeeway
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