pub struct GasLimit {
pub per_yield: Gas,
pub total: Gas,
}
Expand description
Gas limits.
Fields§
§per_yield: Gas
The amount that may be spent synchronously until the execution future should yield.
total: Gas
The total amount of gas that may be spent.
Implementations§
Trait Implementations§
impl Copy for GasLimit
impl Eq for GasLimit
impl StructuralPartialEq for GasLimit
Auto Trait Implementations§
impl Freeze for GasLimit
impl RefUnwindSafe for GasLimit
impl Send for GasLimit
impl Sync for GasLimit
impl Unpin for GasLimit
impl UnwindSafe for GasLimit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more