pub enum EngineKind {
Geth,
Reth,
Erigon,
}Expand description
Identifies the type of execution layer client for behavior customization.
Different execution clients may have slight variations in API behavior or supported features. This enum allows the engine to adapt its behavior accordingly, though as of v0.1.0, behavior is equivalent across all types.
§Examples
use kona_engine::EngineKind;
use std::str::FromStr;
// Parse from string
let kind = EngineKind::from_str("geth").unwrap();
assert_eq!(kind, EngineKind::Geth);
// Display as string
assert_eq!(EngineKind::Reth.to_string(), "reth");Variants§
Implementations§
Source§impl EngineKind
impl EngineKind
Sourcepub const fn supports_post_finalization_elsync(self) -> bool
👎Deprecated since 0.1.0: Node behavior is now equivalent across all engine client types.
pub const fn supports_post_finalization_elsync(self) -> bool
Returns whether the engine client kind supports post finalization EL sync.
Trait Implementations§
Source§impl Clone for EngineKind
impl Clone for EngineKind
Source§fn clone(&self) -> EngineKind
fn clone(&self) -> EngineKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineKind
impl Debug for EngineKind
Source§impl Display for EngineKind
impl Display for EngineKind
Source§impl FromStr for EngineKind
impl FromStr for EngineKind
Source§impl PartialEq for EngineKind
impl PartialEq for EngineKind
impl Copy for EngineKind
impl Eq for EngineKind
impl StructuralPartialEq for EngineKind
Auto Trait Implementations§
impl Freeze for EngineKind
impl RefUnwindSafe for EngineKind
impl Send for EngineKind
impl Sync for EngineKind
impl Unpin for EngineKind
impl UnwindSafe for EngineKind
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<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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.