pub enum PromiseEmissionMode {
AlwaysEmit,
ConsensusDriven,
}Expand description
The PromiseEmissionMode configures the promise emission mode for the ethexe node
Variants§
AlwaysEmit
Node should always emit promises during MB execution.
Always set PromisePolicy::Enabled.
ConsensusDriven
PromisePolicy is decided per-MB by the consensus / compute layer.
Implementations§
Source§impl PromiseEmissionMode
impl PromiseEmissionMode
Sourcepub const fn is_always_emit(&self) -> bool
pub const fn is_always_emit(&self) -> bool
Returns true if this value is of type AlwaysEmit. Returns false otherwise
Sourcepub const fn is_consensus_driven(&self) -> bool
pub const fn is_consensus_driven(&self) -> bool
Returns true if this value is of type ConsensusDriven. Returns false otherwise
Trait Implementations§
Source§impl Clone for PromiseEmissionMode
impl Clone for PromiseEmissionMode
Source§fn clone(&self) -> PromiseEmissionMode
fn clone(&self) -> PromiseEmissionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PromiseEmissionMode
Source§impl Debug for PromiseEmissionMode
impl Debug for PromiseEmissionMode
Source§impl Default for PromiseEmissionMode
impl Default for PromiseEmissionMode
Source§fn default() -> PromiseEmissionMode
fn default() -> PromiseEmissionMode
Returns the “default value” for a type. Read more
impl Eq for PromiseEmissionMode
Source§impl PartialEq for PromiseEmissionMode
impl PartialEq for PromiseEmissionMode
Source§fn eq(&self, other: &PromiseEmissionMode) -> bool
fn eq(&self, other: &PromiseEmissionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PromiseEmissionMode
Auto Trait Implementations§
impl Freeze for PromiseEmissionMode
impl RefUnwindSafe for PromiseEmissionMode
impl Send for PromiseEmissionMode
impl Sync for PromiseEmissionMode
impl Unpin for PromiseEmissionMode
impl UnsafeUnpin for PromiseEmissionMode
impl UnwindSafe for PromiseEmissionMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
impl<T> JsonSchemaMaybe for T
impl<T> MaybeDebug for Twhere
T: Debug,
impl<T> MaybeRefUnwindSafe for Twhere
T: RefUnwindSafe,
impl<T> TypeId for T
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.