pub struct GasParams {
pub max: u64,
pub limit: u64,
pub credit: u64,
pub price: u64,
}
Expand description
Initialization params for GasConsumer
.
Fields§
§max: u64
Maximum possible value of the limit
.
limit: u64
Gas limit for the out-of-gas exception.
credit: u64
Free gas (e.g. for external messages without any balance).
price: u64
Gas price (fixed point with 16 bits for fractional part).
Implementations§
Trait Implementations§
impl Copy for GasParams
impl Eq for GasParams
impl StructuralPartialEq for GasParams
Auto Trait Implementations§
impl Freeze for GasParams
impl RefUnwindSafe for GasParams
impl Send for GasParams
impl Sync for GasParams
impl Unpin for GasParams
impl UnwindSafe for GasParams
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