pub struct DebugApi<Eth, BlockExecutor> { /* private fields */ }
rpc
only.Expand description
debug
API implementation.
This type provides the functionality for handling debug
related requests.
Implementations§
Source§impl<Eth, BlockExecutor> DebugApi<Eth, BlockExecutor>where
Eth: RpcNodeCore,
impl<Eth, BlockExecutor> DebugApi<Eth, BlockExecutor>where
Eth: RpcNodeCore,
Sourcepub fn provider(&self) -> &<Eth as RpcNodeCore>::Provider
pub fn provider(&self) -> &<Eth as RpcNodeCore>::Provider
Access the underlying provider.
Source§impl<Eth, BlockExecutor> DebugApi<Eth, BlockExecutor>where
Eth: EthApiTypes + TraceExt + 'static,
BlockExecutor: BlockExecutorProvider,
<BlockExecutor as BlockExecutorProvider>::Primitives: NodePrimitives<Block = <<Eth as RpcNodeCore>::Provider as BlockReader>::Block>,
impl<Eth, BlockExecutor> DebugApi<Eth, BlockExecutor>where
Eth: EthApiTypes + TraceExt + 'static,
BlockExecutor: BlockExecutorProvider,
<BlockExecutor as BlockExecutorProvider>::Primitives: NodePrimitives<Block = <<Eth as RpcNodeCore>::Provider as BlockReader>::Block>,
Sourcepub async fn debug_trace_raw_block(
&self,
rlp_block: Bytes,
opts: GethDebugTracingOptions,
) -> Result<Vec<TraceResult<GethTrace, String>>, <Eth as EthApiTypes>::Error>
pub async fn debug_trace_raw_block( &self, rlp_block: Bytes, opts: GethDebugTracingOptions, ) -> Result<Vec<TraceResult<GethTrace, String>>, <Eth as EthApiTypes>::Error>
Replays the given block and returns the trace of each transaction.
This expects a rlp encoded block
Note, the parent of this block must be present, or it will fail.
Sourcepub async fn debug_trace_block(
&self,
block_id: BlockId,
opts: GethDebugTracingOptions,
) -> Result<Vec<TraceResult<GethTrace, String>>, <Eth as EthApiTypes>::Error>
pub async fn debug_trace_block( &self, block_id: BlockId, opts: GethDebugTracingOptions, ) -> Result<Vec<TraceResult<GethTrace, String>>, <Eth as EthApiTypes>::Error>
Replays a block and returns the trace of each transaction.
Sourcepub async fn debug_trace_transaction(
&self,
tx_hash: FixedBytes<32>,
opts: GethDebugTracingOptions,
) -> Result<GethTrace, <Eth as EthApiTypes>::Error>
pub async fn debug_trace_transaction( &self, tx_hash: FixedBytes<32>, opts: GethDebugTracingOptions, ) -> Result<GethTrace, <Eth as EthApiTypes>::Error>
Trace the transaction according to the provided options.
Ref: https://geth.ethereum.org/docs/developers/evm-tracing/built-in-tracers
Sourcepub async fn debug_trace_call(
&self,
call: TransactionRequest,
block_id: Option<BlockId>,
opts: GethDebugTracingCallOptions,
) -> Result<GethTrace, <Eth as EthApiTypes>::Error>
pub async fn debug_trace_call( &self, call: TransactionRequest, block_id: Option<BlockId>, opts: GethDebugTracingCallOptions, ) -> Result<GethTrace, <Eth as EthApiTypes>::Error>
The debug_traceCall
method lets you run an eth_call
within the context of the given
block execution using the final state of parent block as the base.
Differences compare to eth_call
:
debug_traceCall
executes with enabled basefee check,eth_call
does not: https://github.com/paradigmxyz/reth/issues/6240
Sourcepub async fn debug_trace_call_many(
&self,
bundles: Vec<Bundle>,
state_context: Option<StateContext>,
opts: Option<GethDebugTracingCallOptions>,
) -> Result<Vec<Vec<GethTrace>>, <Eth as EthApiTypes>::Error>
pub async fn debug_trace_call_many( &self, bundles: Vec<Bundle>, state_context: Option<StateContext>, opts: Option<GethDebugTracingCallOptions>, ) -> Result<Vec<Vec<GethTrace>>, <Eth as EthApiTypes>::Error>
The debug_traceCallMany
method lets you run an eth_callMany
within the context of the
given block execution using the first n transactions in the given block as base.
Each following bundle increments block number by 1 and block timestamp by 12 seconds
Sourcepub async fn debug_execution_witness_by_block_hash(
&self,
hash: FixedBytes<32>,
) -> Result<ExecutionWitness, <Eth as EthApiTypes>::Error>
pub async fn debug_execution_witness_by_block_hash( &self, hash: FixedBytes<32>, ) -> Result<ExecutionWitness, <Eth as EthApiTypes>::Error>
Generates an execution witness for the given block hash. see
Self::debug_execution_witness
for more info.
Sourcepub async fn debug_execution_witness(
&self,
block_id: BlockNumberOrTag,
) -> Result<ExecutionWitness, <Eth as EthApiTypes>::Error>
pub async fn debug_execution_witness( &self, block_id: BlockNumberOrTag, ) -> Result<ExecutionWitness, <Eth as EthApiTypes>::Error>
The debug_executionWitness
method allows for re-execution of a block with the purpose of
generating an execution witness. The witness comprises of a map of all hashed trie nodes to
their preimages that were required during the execution of the block, including during state
root recomputation.
Sourcepub async fn debug_execution_witness_for_block(
&self,
block: Arc<RecoveredBlock<<<Eth as RpcNodeCore>::Provider as BlockReader>::Block>>,
) -> Result<ExecutionWitness, <Eth as EthApiTypes>::Error>
pub async fn debug_execution_witness_for_block( &self, block: Arc<RecoveredBlock<<<Eth as RpcNodeCore>::Provider as BlockReader>::Block>>, ) -> Result<ExecutionWitness, <Eth as EthApiTypes>::Error>
Generates an execution witness, using the given recovered block.
Sourcepub async fn debug_code_by_hash(
&self,
hash: FixedBytes<32>,
block_id: Option<BlockId>,
) -> Result<Option<Bytes>, <Eth as EthApiTypes>::Error>
pub async fn debug_code_by_hash( &self, hash: FixedBytes<32>, block_id: Option<BlockId>, ) -> Result<Option<Bytes>, <Eth as EthApiTypes>::Error>
Returns the code associated with a given hash at the specified block ID. If no code is found, it returns None. If no block ID is provided, it defaults to the latest block.
Trait Implementations§
Source§impl<Eth, BlockExecutor> DebugApiServer for DebugApi<Eth, BlockExecutor>where
Eth: EthApiTypes + EthTransactions + TraceExt + 'static,
BlockExecutor: BlockExecutorProvider,
<BlockExecutor as BlockExecutorProvider>::Primitives: NodePrimitives<Block = <<Eth as RpcNodeCore>::Provider as BlockReader>::Block>,
impl<Eth, BlockExecutor> DebugApiServer for DebugApi<Eth, BlockExecutor>where
Eth: EthApiTypes + EthTransactions + TraceExt + 'static,
BlockExecutor: BlockExecutorProvider,
<BlockExecutor as BlockExecutorProvider>::Primitives: NodePrimitives<Block = <<Eth as RpcNodeCore>::Provider as BlockReader>::Block>,
Source§fn raw_header<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn raw_header<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_getRawHeader
Source§fn raw_block<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn raw_block<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_getRawBlock
Source§fn raw_transaction<'life0, 'async_trait>(
&'life0 self,
hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn raw_transaction<'life0, 'async_trait>(
&'life0 self,
hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_getRawTransaction
If this is a pooled EIP-4844 transaction, the blob sidecar is included.
Returns the bytes of the transaction for the given hash.
Source§fn raw_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn raw_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_getRawTransactions
Returns the bytes of the transaction for the given hash.
Source§fn raw_receipts<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn raw_receipts<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_getRawReceipts
Source§fn bad_blocks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Block>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn bad_blocks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Block>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_getBadBlocks
Source§fn debug_trace_chain<'life0, 'async_trait>(
&'life0 self,
_start_exclusive: BlockNumberOrTag,
_end_inclusive: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlockTraceResult>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_chain<'life0, 'async_trait>(
&'life0 self,
_start_exclusive: BlockNumberOrTag,
_end_inclusive: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlockTraceResult>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_traceChain
Source§fn debug_trace_block<'life0, 'async_trait>(
&'life0 self,
rlp_block: Bytes,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TraceResult<GethTrace, String>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_block<'life0, 'async_trait>(
&'life0 self,
rlp_block: Bytes,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TraceResult<GethTrace, String>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_traceBlock
Source§fn debug_trace_block_by_hash<'life0, 'async_trait>(
&'life0 self,
block: FixedBytes<32>,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TraceResult<GethTrace, String>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_block_by_hash<'life0, 'async_trait>(
&'life0 self,
block: FixedBytes<32>,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TraceResult<GethTrace, String>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_traceBlockByHash
Source§fn debug_trace_block_by_number<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TraceResult<GethTrace, String>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_block_by_number<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TraceResult<GethTrace, String>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_traceBlockByNumber
Source§fn debug_trace_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hash: FixedBytes<32>,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<GethTrace, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hash: FixedBytes<32>,
opts: Option<GethDebugTracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<GethTrace, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_traceTransaction
Source§fn debug_trace_call<'life0, 'async_trait>(
&'life0 self,
request: TransactionRequest,
block_id: Option<BlockId>,
opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<GethTrace, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_call<'life0, 'async_trait>(
&'life0 self,
request: TransactionRequest,
block_id: Option<BlockId>,
opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<GethTrace, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_traceCall
Source§fn debug_execution_witness<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = Result<ExecutionWitness, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_execution_witness<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = Result<ExecutionWitness, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_executionWitness
Source§fn debug_execution_witness_by_block_hash<'life0, 'async_trait>(
&'life0 self,
hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<ExecutionWitness, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_execution_witness_by_block_hash<'life0, 'async_trait>(
&'life0 self,
hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<ExecutionWitness, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Handler for debug_executionWitnessByBlockHash
Source§fn debug_trace_call_many<'life0, 'async_trait>(
&'life0 self,
bundles: Vec<Bundle>,
state_context: Option<StateContext>,
opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<GethTrace>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_call_many<'life0, 'async_trait>(
&'life0 self,
bundles: Vec<Bundle>,
state_context: Option<StateContext>,
opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<GethTrace>>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
debug_traceCallMany
method lets you run an eth_callMany
within the context of the
given block execution using the final state of parent block as the base followed by n
transactions. Read moreSource§fn debug_backtrace_at<'life0, 'life1, 'async_trait>(
&'life0 self,
_location: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_backtrace_at<'life0, 'life1, 'async_trait>(
&'life0 self,
_location: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_account_range<'life0, 'async_trait>(
&'life0 self,
_block_number: BlockNumberOrTag,
_start: Bytes,
_max_results: u64,
_nocode: bool,
_nostorage: bool,
_incompletes: bool,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_account_range<'life0, 'async_trait>(
&'life0 self,
_block_number: BlockNumberOrTag,
_start: Bytes,
_max_results: u64,
_nocode: bool,
_nostorage: bool,
_incompletes: bool,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
maxResults
are returned
in the page and the items have keys that come after the start
key (hashed address). Read moreSource§fn debug_block_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_block_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
debug_writeBlockProfile
.Source§fn debug_chaindb_compact<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_chaindb_compact<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_chain_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ChainConfig, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_chain_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ChainConfig, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_chaindb_property<'life0, 'async_trait>(
&'life0 self,
_property: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_chaindb_property<'life0, 'async_trait>(
&'life0 self,
_property: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_code_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: FixedBytes<32>,
block_id: Option<BlockId>,
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_code_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: FixedBytes<32>,
block_id: Option<BlockId>,
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_cpu_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_cpu_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_db_ancient<'life0, 'async_trait>(
&'life0 self,
_kind: String,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_db_ancient<'life0, 'async_trait>(
&'life0 self,
_kind: String,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
kind
specifies which table to look up data
from. The list of all table kinds are as follows:Source§fn debug_db_ancients<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_db_ancients<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_db_get<'life0, 'async_trait>(
&'life0 self,
_key: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_db_get<'life0, 'async_trait>(
&'life0 self,
_key: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_dump_block<'life0, 'async_trait>(
&'life0 self,
_number: BlockId,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_dump_block<'life0, 'async_trait>(
&'life0 self,
_number: BlockId,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_free_os_memory<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_free_os_memory<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_freeze_client<'life0, 'async_trait>(
&'life0 self,
_node: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_freeze_client<'life0, 'async_trait>(
&'life0 self,
_node: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_gc_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_gc_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_get_accessible_state<'life0, 'async_trait>(
&'life0 self,
_from: BlockNumberOrTag,
_to: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_get_accessible_state<'life0, 'async_trait>(
&'life0 self,
_from: BlockNumberOrTag,
_to: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_get_modified_accounts_by_hash<'life0, 'async_trait>(
&'life0 self,
_start_hash: FixedBytes<32>,
_end_hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_get_modified_accounts_by_hash<'life0, 'async_trait>(
&'life0 self,
_start_hash: FixedBytes<32>,
_end_hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_get_modified_accounts_by_number<'life0, 'async_trait>(
&'life0 self,
_start_number: u64,
_end_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_get_modified_accounts_by_number<'life0, 'async_trait>(
&'life0 self,
_start_number: u64,
_end_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_go_trace<'life0, 'async_trait>(
&'life0 self,
_file: String,
_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_go_trace<'life0, 'async_trait>(
&'life0 self,
_file: String,
_seconds: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_intermediate_roots<'life0, 'async_trait>(
&'life0 self,
_block_hash: FixedBytes<32>,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_intermediate_roots<'life0, 'async_trait>(
&'life0 self,
_block_hash: FixedBytes<32>,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_mem_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_mem_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_mutex_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
_nsec: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_mutex_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
_nsec: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
nsec
seconds and writes profile data to file. It uses a
profile rate of 1 for most accurate information. If a different rate is desired, set the
rate and write the profile manually.Source§fn debug_preimage<'life0, 'async_trait>(
&'life0 self,
_hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_preimage<'life0, 'async_trait>(
&'life0 self,
_hash: FixedBytes<32>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_print_block<'life0, 'async_trait>(
&'life0 self,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_print_block<'life0, 'async_trait>(
&'life0 self,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_seed_hash<'life0, 'async_trait>(
&'life0 self,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<FixedBytes<32>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_seed_hash<'life0, 'async_trait>(
&'life0 self,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<FixedBytes<32>, ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_set_block_profile_rate<'life0, 'async_trait>(
&'life0 self,
_rate: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_set_block_profile_rate<'life0, 'async_trait>(
&'life0 self,
_rate: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
debug_writeBlockProfile
.Source§fn debug_set_gc_percent<'life0, 'async_trait>(
&'life0 self,
_v: i32,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_set_gc_percent<'life0, 'async_trait>(
&'life0 self,
_v: i32,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_set_head<'life0, 'async_trait>(
&'life0 self,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_set_head<'life0, 'async_trait>(
&'life0 self,
_number: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_set_mutex_profile_fraction<'life0, 'async_trait>(
&'life0 self,
_rate: i32,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_set_mutex_profile_fraction<'life0, 'async_trait>(
&'life0 self,
_rate: i32,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_set_trie_flush_interval<'life0, 'async_trait>(
&'life0 self,
_interval: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_set_trie_flush_interval<'life0, 'async_trait>(
&'life0 self,
_interval: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_stacks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_stacks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_standard_trace_bad_block_to_file<'life0, 'async_trait>(
&'life0 self,
_block: BlockNumberOrTag,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_standard_trace_bad_block_to_file<'life0, 'async_trait>(
&'life0 self,
_block: BlockNumberOrTag,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_standard_trace_block_to_file<'life0, 'async_trait>(
&'life0 self,
_block: BlockNumberOrTag,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_standard_trace_block_to_file<'life0, 'async_trait>(
&'life0 self,
_block: BlockNumberOrTag,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
debug_standardTraceBlockToFile
, but can be used to obtain info
about a block which has been rejected as invalid (for some reason).Source§fn debug_start_cpu_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_start_cpu_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_start_go_trace<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_start_go_trace<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_stop_cpu_profile<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_stop_cpu_profile<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_stop_go_trace<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_stop_go_trace<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_storage_range_at<'life0, 'async_trait>(
&'life0 self,
_block_hash: FixedBytes<32>,
_tx_idx: usize,
_contract_address: Address,
_key_start: FixedBytes<32>,
_max_result: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_storage_range_at<'life0, 'async_trait>(
&'life0 self,
_block_hash: FixedBytes<32>,
_tx_idx: usize,
_contract_address: Address,
_key_start: FixedBytes<32>,
_max_result: u64,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
maxResult
to cap the number of storage slots returned as well as
specifying the offset via keyStart
(hash of storage key).Source§fn debug_trace_bad_block<'life0, 'async_trait>(
&'life0 self,
_block_hash: FixedBytes<32>,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_trace_bad_block<'life0, 'async_trait>(
&'life0 self,
_block_hash: FixedBytes<32>,
_opts: Option<GethDebugTracingCallOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_verbosity<'life0, 'async_trait>(
&'life0 self,
_level: usize,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_verbosity<'life0, 'async_trait>(
&'life0 self,
_level: usize,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_vmodule<'life0, 'async_trait>(
&'life0 self,
_pattern: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_vmodule<'life0, 'async_trait>(
&'life0 self,
_pattern: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_write_block_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_write_block_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_write_mem_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_write_mem_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Source§fn debug_write_mutex_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
fn debug_write_mutex_profile<'life0, 'async_trait>(
&'life0 self,
_file: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>where
'life0: 'async_trait,
DebugApi<Eth, BlockExecutor>: 'async_trait,
Auto Trait Implementations§
impl<Eth, BlockExecutor> Freeze for DebugApi<Eth, BlockExecutor>
impl<Eth, BlockExecutor> !RefUnwindSafe for DebugApi<Eth, BlockExecutor>
impl<Eth, BlockExecutor> Send for DebugApi<Eth, BlockExecutor>
impl<Eth, BlockExecutor> Sync for DebugApi<Eth, BlockExecutor>
impl<Eth, BlockExecutor> Unpin for DebugApi<Eth, BlockExecutor>
impl<Eth, BlockExecutor> !UnwindSafe for DebugApi<Eth, BlockExecutor>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv
from a transaction and a sender address.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> ⓘ
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 more§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute
] value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
[Quirk
] value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition
] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
impl<T> TryConv for T
§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>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§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>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeDebug for Twhere
T: Debug,
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSendSync for T
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: 8 bytes