#[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 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 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§fn eq(&self, other: &ClientCode) -> bool
fn eq(&self, other: &ClientCode) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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§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> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
BU: 0 bytesEJ: 0 bytesEG: 0 bytesGE: 0 bytesGR: 0 bytesLH: 0 bytesLS: 0 bytesNM: 0 bytesNB: 0 bytesTE: 0 bytesTK: 0 bytesPM: 0 bytesRH: 0 bytes