pub struct GasLimitUpdate {
pub gas_limit: u64,
}Expand description
The gas limit update type.
Fields§
§gas_limit: u64The gas limit.
Implementations§
Source§impl GasLimitUpdate
impl GasLimitUpdate
Sourcepub fn apply(&self, config: &mut SystemConfig)
pub fn apply(&self, config: &mut SystemConfig)
Applies the update to the SystemConfig.
Trait Implementations§
Source§impl Clone for GasLimitUpdate
impl Clone for GasLimitUpdate
Source§fn clone(&self) -> GasLimitUpdate
fn clone(&self) -> GasLimitUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GasLimitUpdate
impl Debug for GasLimitUpdate
Source§impl Default for GasLimitUpdate
impl Default for GasLimitUpdate
Source§fn default() -> GasLimitUpdate
fn default() -> GasLimitUpdate
Returns the “default value” for a type. Read more
Source§impl Hash for GasLimitUpdate
impl Hash for GasLimitUpdate
Source§impl PartialEq for GasLimitUpdate
impl PartialEq for GasLimitUpdate
Source§impl TryFrom<&SystemConfigLog> for GasLimitUpdate
impl TryFrom<&SystemConfigLog> for GasLimitUpdate
Source§type Error = GasLimitUpdateError
type Error = GasLimitUpdateError
The type returned in the event of a conversion error.
Source§fn try_from(
log: &SystemConfigLog,
) -> Result<GasLimitUpdate, <GasLimitUpdate as TryFrom<&SystemConfigLog>>::Error>
fn try_from( log: &SystemConfigLog, ) -> Result<GasLimitUpdate, <GasLimitUpdate as TryFrom<&SystemConfigLog>>::Error>
Performs the conversion.
impl Eq for GasLimitUpdate
impl StructuralPartialEq for GasLimitUpdate
Auto Trait Implementations§
impl Freeze for GasLimitUpdate
impl RefUnwindSafe for GasLimitUpdate
impl Send for GasLimitUpdate
impl Sync for GasLimitUpdate
impl Unpin for GasLimitUpdate
impl UnwindSafe for GasLimitUpdate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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