Struct reth_node_core::rpc::types::trace::geth::GethDefaultTracingOptions
pub struct GethDefaultTracingOptions {
pub enable_memory: Option<bool>,
pub disable_memory: Option<bool>,
pub disable_stack: Option<bool>,
pub disable_storage: Option<bool>,
pub enable_return_data: Option<bool>,
pub disable_return_data: Option<bool>,
pub debug: Option<bool>,
pub limit: Option<u64>,
}
Expand description
Default tracing options for the struct logger.
These are all known general purpose tracer options that may or not be supported by a given
tracer. For example, the enableReturnData
option is a noop on regular
debug_trace{Transaction,Block}
calls.
Fields§
§enable_memory: Option<bool>
enable memory capture
disable_memory: Option<bool>
Disable memory capture
This is the opposite of enable_memory
.
Note: memory capture used to be enabled by default on geth, but has since been flipped https://github.com/ethereum/go-ethereum/pull/23558 and is now disabled by default.
However, at the time of writing this, Erigon still defaults to enabled and supports the
disableMemory
option. So we keep this option for compatibility, but if it’s missing
OR enableMemory
is present enableMemory
takes precedence.
disable_stack: Option<bool>
disable stack capture
disable_storage: Option<bool>
Disable storage capture
enable_return_data: Option<bool>
Enable return data capture
disable_return_data: Option<bool>
Disable return data capture
This is the opposite of enable_return_data
, and only supported for compatibility reasons.
See also disable_memory
.
If enable_return_data
is present, enable_return_data
always takes precedence.
debug: Option<bool>
print output during capture end
limit: Option<u64>
maximum length of output, but zero means unlimited
Implementations§
§impl GethDefaultTracingOptions
impl GethDefaultTracingOptions
pub const fn enable_memory(self) -> GethDefaultTracingOptions
pub const fn enable_memory(self) -> GethDefaultTracingOptions
Enables memory capture.
pub const fn disable_memory(self) -> GethDefaultTracingOptions
pub const fn disable_memory(self) -> GethDefaultTracingOptions
Disables memory capture.
pub const fn disable_stack(self) -> GethDefaultTracingOptions
pub const fn disable_stack(self) -> GethDefaultTracingOptions
Disables stack capture.
pub const fn disable_storage(self) -> GethDefaultTracingOptions
pub const fn disable_storage(self) -> GethDefaultTracingOptions
Disables storage capture.
pub const fn enable_return_data(self) -> GethDefaultTracingOptions
pub const fn enable_return_data(self) -> GethDefaultTracingOptions
Enables return data capture.
pub const fn disable_return_data(self) -> GethDefaultTracingOptions
pub const fn disable_return_data(self) -> GethDefaultTracingOptions
Disables return data capture.
pub const fn debug(self) -> GethDefaultTracingOptions
pub const fn debug(self) -> GethDefaultTracingOptions
Enables debug mode.
pub const fn with_enable_memory(self, enable: bool) -> GethDefaultTracingOptions
pub const fn with_enable_memory(self, enable: bool) -> GethDefaultTracingOptions
Sets the enable_memory field.
pub const fn with_disable_memory(
self,
disable: bool,
) -> GethDefaultTracingOptions
pub const fn with_disable_memory( self, disable: bool, ) -> GethDefaultTracingOptions
Sets the disable_memory field.
pub const fn with_disable_stack(
self,
disable: bool,
) -> GethDefaultTracingOptions
pub const fn with_disable_stack( self, disable: bool, ) -> GethDefaultTracingOptions
Sets the disable_stack field.
pub const fn with_disable_storage(
self,
disable: bool,
) -> GethDefaultTracingOptions
pub const fn with_disable_storage( self, disable: bool, ) -> GethDefaultTracingOptions
Sets the disable_storage field.
pub const fn with_enable_return_data(
self,
enable: bool,
) -> GethDefaultTracingOptions
pub const fn with_enable_return_data( self, enable: bool, ) -> GethDefaultTracingOptions
Sets the enable_return_data field.
pub const fn with_disable_return_data(
self,
disable: bool,
) -> GethDefaultTracingOptions
pub const fn with_disable_return_data( self, disable: bool, ) -> GethDefaultTracingOptions
Sets the disable_return_data field.
pub const fn with_debug(self, debug: bool) -> GethDefaultTracingOptions
pub const fn with_debug(self, debug: bool) -> GethDefaultTracingOptions
Sets the debug field.
pub const fn with_limit(self, limit: u64) -> GethDefaultTracingOptions
pub const fn with_limit(self, limit: u64) -> GethDefaultTracingOptions
Sets the limit field.
pub fn is_return_data_enabled(&self) -> bool
pub fn is_return_data_enabled(&self) -> bool
Returns true
if return data capture is enabled
pub fn is_memory_enabled(&self) -> bool
pub fn is_memory_enabled(&self) -> bool
Returns true
if memory capture is enabled
pub fn is_stack_enabled(&self) -> bool
pub fn is_stack_enabled(&self) -> bool
Returns true
if stack capture is enabled
pub fn is_storage_enabled(&self) -> bool
pub fn is_storage_enabled(&self) -> bool
Returns true
if storage capture is enabled
Trait Implementations§
§impl Clone for GethDefaultTracingOptions
impl Clone for GethDefaultTracingOptions
§fn clone(&self) -> GethDefaultTracingOptions
fn clone(&self) -> GethDefaultTracingOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for GethDefaultTracingOptions
impl Debug for GethDefaultTracingOptions
§impl Default for GethDefaultTracingOptions
impl Default for GethDefaultTracingOptions
§fn default() -> GethDefaultTracingOptions
fn default() -> GethDefaultTracingOptions
§impl<'de> Deserialize<'de> for GethDefaultTracingOptions
impl<'de> Deserialize<'de> for GethDefaultTracingOptions
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GethDefaultTracingOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GethDefaultTracingOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for GethDefaultTracingOptions
impl PartialEq for GethDefaultTracingOptions
§impl Serialize for GethDefaultTracingOptions
impl Serialize for GethDefaultTracingOptions
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for GethDefaultTracingOptions
impl Eq for GethDefaultTracingOptions
impl StructuralPartialEq for GethDefaultTracingOptions
Auto Trait Implementations§
impl Freeze for GethDefaultTracingOptions
impl RefUnwindSafe for GethDefaultTracingOptions
impl Send for GethDefaultTracingOptions
impl Sync for GethDefaultTracingOptions
impl Unpin for GethDefaultTracingOptions
impl UnwindSafe for GethDefaultTracingOptions
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<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<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.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§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> 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<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> 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> 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> 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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
impl<T> NippyJarHeader for T
impl<T> RpcObject for Twhere
T: RpcParam + RpcReturn,
impl<T> RpcParam for T
impl<T> RpcReturn 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: 24 bytes