Enum near_vm_logic::types::GasDistribution
source · #[non_exhaustive]
pub enum GasDistribution {
All,
NoRatios,
}
Expand description
Result from a gas distribution among function calls with ratios.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
All remaining gas was distributed to functions.
NoRatios
There were no function call actions with a ratio specified.
Trait Implementations§
source§impl Debug for GasDistribution
impl Debug for GasDistribution
source§impl PartialEq<GasDistribution> for GasDistribution
impl PartialEq<GasDistribution> for GasDistribution
source§fn eq(&self, other: &GasDistribution) -> bool
fn eq(&self, other: &GasDistribution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GasDistribution
impl StructuralEq for GasDistribution
impl StructuralPartialEq for GasDistribution
Auto Trait Implementations§
impl RefUnwindSafe for GasDistribution
impl Send for GasDistribution
impl Sync for GasDistribution
impl Unpin for GasDistribution
impl UnwindSafe for GasDistribution
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request