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§
source§impl GethDefaultTracingOptions
impl GethDefaultTracingOptions
sourcepub const fn enable_memory(self) -> Self
pub const fn enable_memory(self) -> Self
Enables memory capture.
sourcepub const fn disable_memory(self) -> Self
pub const fn disable_memory(self) -> Self
Disables memory capture.
sourcepub const fn disable_stack(self) -> Self
pub const fn disable_stack(self) -> Self
Disables stack capture.
sourcepub const fn disable_storage(self) -> Self
pub const fn disable_storage(self) -> Self
Disables storage capture.
sourcepub const fn enable_return_data(self) -> Self
pub const fn enable_return_data(self) -> Self
Enables return data capture.
sourcepub const fn disable_return_data(self) -> Self
pub const fn disable_return_data(self) -> Self
Disables return data capture.
sourcepub const fn with_enable_memory(self, enable: bool) -> Self
pub const fn with_enable_memory(self, enable: bool) -> Self
Sets the enable_memory field.
sourcepub const fn with_disable_memory(self, disable: bool) -> Self
pub const fn with_disable_memory(self, disable: bool) -> Self
Sets the disable_memory field.
sourcepub const fn with_disable_stack(self, disable: bool) -> Self
pub const fn with_disable_stack(self, disable: bool) -> Self
Sets the disable_stack field.
sourcepub const fn with_disable_storage(self, disable: bool) -> Self
pub const fn with_disable_storage(self, disable: bool) -> Self
Sets the disable_storage field.
sourcepub const fn with_enable_return_data(self, enable: bool) -> Self
pub const fn with_enable_return_data(self, enable: bool) -> Self
Sets the enable_return_data field.
sourcepub const fn with_disable_return_data(self, disable: bool) -> Self
pub const fn with_disable_return_data(self, disable: bool) -> Self
Sets the disable_return_data field.
sourcepub const fn with_debug(self, debug: bool) -> Self
pub const fn with_debug(self, debug: bool) -> Self
Sets the debug field.
sourcepub const fn with_limit(self, limit: u64) -> Self
pub const fn with_limit(self, limit: u64) -> Self
Sets the limit field.
sourcepub fn is_return_data_enabled(&self) -> bool
pub fn is_return_data_enabled(&self) -> bool
Returns true
if return data capture is enabled
sourcepub fn is_memory_enabled(&self) -> bool
pub fn is_memory_enabled(&self) -> bool
Returns true
if memory capture is enabled
sourcepub fn is_stack_enabled(&self) -> bool
pub fn is_stack_enabled(&self) -> bool
Returns true
if stack capture is enabled
sourcepub fn is_storage_enabled(&self) -> bool
pub fn is_storage_enabled(&self) -> bool
Returns true
if storage capture is enabled
Trait Implementations§
source§impl Clone for GethDefaultTracingOptions
impl Clone for GethDefaultTracingOptions
source§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 moresource§impl Debug for GethDefaultTracingOptions
impl Debug for GethDefaultTracingOptions
source§impl Default for GethDefaultTracingOptions
impl Default for GethDefaultTracingOptions
source§fn default() -> GethDefaultTracingOptions
fn default() -> GethDefaultTracingOptions
source§impl<'de> Deserialize<'de> for GethDefaultTracingOptions
impl<'de> Deserialize<'de> for GethDefaultTracingOptions
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>,
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,
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