#[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