pub struct GasConfigUpdate {
pub scalar: Option<Uint<256, 4>>,
pub overhead: Option<Uint<256, 4>>,
}Expand description
The gas config update type.
Fields§
§scalar: Option<Uint<256, 4>>The scalar.
overhead: Option<Uint<256, 4>>The overhead.
Implementations§
Source§impl GasConfigUpdate
impl GasConfigUpdate
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 GasConfigUpdate
impl Clone for GasConfigUpdate
Source§fn clone(&self) -> GasConfigUpdate
fn clone(&self) -> GasConfigUpdate
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 GasConfigUpdate
impl Debug for GasConfigUpdate
Source§impl Default for GasConfigUpdate
impl Default for GasConfigUpdate
Source§fn default() -> GasConfigUpdate
fn default() -> GasConfigUpdate
Returns the “default value” for a type. Read more
Source§impl Hash for GasConfigUpdate
impl Hash for GasConfigUpdate
Source§impl PartialEq for GasConfigUpdate
impl PartialEq for GasConfigUpdate
Source§impl TryFrom<&SystemConfigLog> for GasConfigUpdate
impl TryFrom<&SystemConfigLog> for GasConfigUpdate
Source§type Error = GasConfigUpdateError
type Error = GasConfigUpdateError
The type returned in the event of a conversion error.
Source§fn try_from(
sys_log: &SystemConfigLog,
) -> Result<GasConfigUpdate, <GasConfigUpdate as TryFrom<&SystemConfigLog>>::Error>
fn try_from( sys_log: &SystemConfigLog, ) -> Result<GasConfigUpdate, <GasConfigUpdate as TryFrom<&SystemConfigLog>>::Error>
Performs the conversion.
impl Eq for GasConfigUpdate
impl StructuralPartialEq for GasConfigUpdate
Auto Trait Implementations§
impl Freeze for GasConfigUpdate
impl RefUnwindSafe for GasConfigUpdate
impl Send for GasConfigUpdate
impl Sync for GasConfigUpdate
impl Unpin for GasConfigUpdate
impl UnwindSafe for GasConfigUpdate
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