pub struct GasParams {
pub max: u64,
pub limit: u64,
pub credit: u64,
pub price: u64,
}Expand description
Initialization params for GasConsumer.
Fields§
§max: u64Maximum possible value of the limit.
limit: u64Gas limit for the out-of-gas exception.
credit: u64Free gas (e.g. for external messages without any balance).
price: u64Gas 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