#[non_exhaustive]pub enum ClientCode {
Show 13 variants
BU,
EJ,
EG,
GE,
GR,
LH,
LS,
NM,
NB,
TE,
TK,
PM,
RH,
}
Expand description
This enum defines a standard for specifying a client with just two letters. Clients teams which have a code reserved in this list MUST use this code when identifying themselves.
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.
BU
Besu
EJ
EthereumJS
EG
Erigon
GE
Geth, go-ethereum
GR
Grandine
LH
Lighthouse
LS
Lodestar
NM
Nethermind
NB
Nimbus
TE
Trin Execution
TK
Teku
PM
Prysm
RH
Reth
Implementations§
source§impl ClientCode
impl ClientCode
Trait Implementations§
source§impl Clone for ClientCode
impl Clone for ClientCode
source§fn clone(&self) -> ClientCode
fn clone(&self) -> ClientCode
Returns a copy 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 ClientCode
impl Debug for ClientCode
source§impl<'de> Deserialize<'de> for ClientCode
impl<'de> Deserialize<'de> for ClientCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ClientCode
impl Display for ClientCode
source§impl<'_derivative_strum> From<&'_derivative_strum ClientCode> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ClientCode> for &'static str
source§fn from(x: &'_derivative_strum ClientCode) -> &'static str
fn from(x: &'_derivative_strum ClientCode) -> &'static str
Converts to this type from the input type.
source§impl From<ClientCode> for &'static str
impl From<ClientCode> for &'static str
source§fn from(x: ClientCode) -> &'static str
fn from(x: ClientCode) -> &'static str
Converts to this type from the input type.
source§impl FromStr for ClientCode
impl FromStr for ClientCode
source§impl PartialEq for ClientCode
impl PartialEq for ClientCode
source§impl Serialize for ClientCode
Available on crate feature serde
only.
impl Serialize for ClientCode
Available on crate feature
serde
only.source§impl TryFrom<&str> for ClientCode
impl TryFrom<&str> for ClientCode
impl Copy for ClientCode
impl Eq for ClientCode
impl StructuralPartialEq for ClientCode
Auto Trait Implementations§
impl Freeze for ClientCode
impl RefUnwindSafe for ClientCode
impl Send for ClientCode
impl Sync for ClientCode
impl Unpin for ClientCode
impl UnwindSafe for ClientCode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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