pub enum RethRpcModule {
Show 15 variants
Admin,
Debug,
Eth,
Net,
Trace,
Txpool,
Web3,
Rpc,
Reth,
Ots,
Flashbots,
Miner,
Mev,
Testing,
Other(String),
}Expand description
Represents RPC modules that are supported by reth
Variants§
Admin
admin_ module
Debug
debug_ module
Eth
eth_ module
Net
net_ module
Trace
trace_ module
Txpool
txpool_ module
Web3
web3_ module
Rpc
rpc_ module
Reth
reth_ module
Ots
ots_ module
Flashbots
flashbots_ module
Miner
miner_ module
Mev
mev_ module
Testing
testing_ module
Other(String)
Custom RPC module not part of the standard set
Implementations§
Source§impl RethRpcModule
impl RethRpcModule
Sourcepub const fn variant_count() -> usize
pub const fn variant_count() -> usize
Returns the number of standard variants (excludes Other)
Sourcepub const fn all_variant_names() -> &'static [&'static str]
pub const fn all_variant_names() -> &'static [&'static str]
Returns all variant names including Other (for parsing)
Sourcepub fn standard_variant_names() -> impl Iterator<Item = &'static str>
pub fn standard_variant_names() -> impl Iterator<Item = &'static str>
Returns standard variant names (excludes “other”) for CLI display
Sourcepub const fn all_variants() -> &'static [Self]
pub const fn all_variants() -> &'static [Self]
Returns all standard variants (excludes Other)
Sourcepub fn modules() -> impl IntoIterator<Item = Self> + Clone
pub fn modules() -> impl IntoIterator<Item = Self> + Clone
Returns iterator over standard modules only
Trait Implementations§
Source§impl AsRef<str> for RethRpcModule
impl AsRef<str> for RethRpcModule
Source§impl Clone for RethRpcModule
impl Clone for RethRpcModule
Source§impl Debug for RethRpcModule
impl Debug for RethRpcModule
Source§impl<'de> Deserialize<'de> for RethRpcModule
impl<'de> Deserialize<'de> for RethRpcModule
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>,
Source§impl Display for RethRpcModule
impl Display for RethRpcModule
impl Eq for RethRpcModule
Source§impl<'a> FromIterator<&'a RethRpcModule> for RpcModuleSelection
impl<'a> FromIterator<&'a RethRpcModule> for RpcModuleSelection
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = &'a RethRpcModule>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = &'a RethRpcModule>,
Source§impl FromIterator<RethRpcModule> for RpcModuleSelection
impl FromIterator<RethRpcModule> for RpcModuleSelection
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = RethRpcModule>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = RethRpcModule>,
Source§impl FromStr for RethRpcModule
impl FromStr for RethRpcModule
Source§impl Hash for RethRpcModule
impl Hash for RethRpcModule
Source§impl PartialEq for RethRpcModule
impl PartialEq for RethRpcModule
Source§impl Serialize for RethRpcModule
impl Serialize for RethRpcModule
impl StructuralPartialEq for RethRpcModule
Source§impl TryFrom<&str> for RethRpcModule
impl TryFrom<&str> for RethRpcModule
Auto Trait Implementations§
impl Freeze for RethRpcModule
impl RefUnwindSafe for RethRpcModule
impl Send for RethRpcModule
impl Sync for RethRpcModule
impl Unpin for RethRpcModule
impl UnsafeUnpin for RethRpcModule
impl UnwindSafe for RethRpcModule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeDebug for Twhere
T: Debug,
impl<T> MaybeSerde for Twhere
T: Serialize + for<'de> Deserialize<'de>,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 24 bytes
Size for each variant:
Admin: 0 bytesDebug: 0 bytesEth: 0 bytesNet: 0 bytesTrace: 0 bytesTxpool: 0 bytesWeb3: 0 bytesRpc: 0 bytesReth: 0 bytesOts: 0 bytesFlashbots: 0 bytesMiner: 0 bytesMev: 0 bytesTesting: 0 bytesOther: 24 bytes