pub struct GethDebugTracingOptions {
pub config: GethDefaultTracingOptions,
pub tracer: Option<GethDebugTracerType>,
pub tracer_config: GethDebugTracerConfig,
pub timeout: Option<String>,
}
Expand description
Bindings for additional debug_traceTransaction
options
See https://geth.ethereum.org/docs/rpc/ns-debug#debug_tracetransaction
Fields§
§config: GethDefaultTracingOptions
The common tracing options
tracer: Option<GethDebugTracerType>
The custom tracer to use.
If None
then the default structlog tracer is used.
tracer_config: GethDebugTracerConfig
Config specific to given tracer
.
Note default struct logger config are historically embedded in main object.
tracerConfig is slated for Geth v1.11.0 See https://github.com/ethereum/go-ethereum/issues/26513
This could be CallConfig or PreStateConfig depending on the tracer.
timeout: Option<String>
A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds.
Implementations§
Source§impl GethDebugTracingOptions
impl GethDebugTracingOptions
Sourcepub fn new_tracer(tracer: impl Into<GethDebugTracerType>) -> Self
pub fn new_tracer(tracer: impl Into<GethDebugTracerType>) -> Self
Creates a new instance with given GethDebugTracerType
configured
Sourcepub fn with_tracer(self, tracer: GethDebugTracerType) -> Self
pub fn with_tracer(self, tracer: GethDebugTracerType) -> Self
Sets the tracer to use
Sourcepub fn call_tracer(config: CallConfig) -> Self
pub fn call_tracer(config: CallConfig) -> Self
Creates new Options for GethDebugBuiltInTracerType::CallTracer
.
Sourcepub fn flat_call_tracer(config: FlatCallConfig) -> Self
pub fn flat_call_tracer(config: FlatCallConfig) -> Self
Creates new Options for GethDebugBuiltInTracerType::FlatCallTracer
.
Sourcepub fn mux_tracer(config: MuxConfig) -> Self
pub fn mux_tracer(config: MuxConfig) -> Self
Creates new Options for GethDebugBuiltInTracerType::MuxTracer
.
Sourcepub fn prestate_tracer(config: PreStateConfig) -> Self
pub fn prestate_tracer(config: PreStateConfig) -> Self
Creates new options for GethDebugBuiltInTracerType::PreStateTracer
Sourcepub fn four_byte_tracer() -> Self
pub fn four_byte_tracer() -> Self
Creates new options for GethDebugBuiltInTracerType::FourByteTracer
Sourcepub fn js_tracer(code: impl Into<String>) -> Self
pub fn js_tracer(code: impl Into<String>) -> Self
Creates an GethDebugTracerType::JsTracer
with the given js code.
Sourcepub fn with_timeout(self, duration: Duration) -> Self
pub fn with_timeout(self, duration: Duration) -> Self
Sets the timeout to use for tracing
Sourcepub fn with_call_config(self, config: CallConfig) -> Self
pub fn with_call_config(self, config: CallConfig) -> Self
Configures a CallConfig
Sourcepub fn with_prestate_config(self, config: PreStateConfig) -> Self
pub fn with_prestate_config(self, config: PreStateConfig) -> Self
Configures a PreStateConfig
Sourcepub fn with_config<T>(self, config: T) -> Selfwhere
T: Into<GethDebugTracerConfig>,
pub fn with_config<T>(self, config: T) -> Selfwhere
T: Into<GethDebugTracerConfig>,
Sets the tracer config
Trait Implementations§
Source§impl Clone for GethDebugTracingOptions
impl Clone for GethDebugTracingOptions
Source§fn clone(&self) -> GethDebugTracingOptions
fn clone(&self) -> GethDebugTracingOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GethDebugTracingOptions
impl Debug for GethDebugTracingOptions
Source§impl Default for GethDebugTracingOptions
impl Default for GethDebugTracingOptions
Source§fn default() -> GethDebugTracingOptions
fn default() -> GethDebugTracingOptions
Source§impl<'de> Deserialize<'de> for GethDebugTracingOptions
impl<'de> Deserialize<'de> for GethDebugTracingOptions
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 PartialEq for GethDebugTracingOptions
impl PartialEq for GethDebugTracingOptions
Source§impl Serialize for GethDebugTracingOptions
impl Serialize for GethDebugTracingOptions
impl Eq for GethDebugTracingOptions
impl StructuralPartialEq for GethDebugTracingOptions
Auto Trait Implementations§
impl Freeze for GethDebugTracingOptions
impl RefUnwindSafe for GethDebugTracingOptions
impl Send for GethDebugTracingOptions
impl Sync for GethDebugTracingOptions
impl Unpin for GethDebugTracingOptions
impl UnwindSafe for GethDebugTracingOptions
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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