pub enum GethTrace {
Default(DefaultFrame),
CallTracer(CallFrame),
FlatCallTracer(FlatCallFrame),
FourByteTracer(FourByteFrame),
PreStateTracer(PreStateFrame),
NoopTracer(NoopFrame),
MuxTracer(MuxFrame),
JS(Value),
}
Expand description
Tracing response objects
Note: This deserializes untagged, so it’s possible that a custom javascript tracer response
matches another variant, for example a js tracer that returns {}
would be deserialized as
GethTrace::NoopTracer
Variants§
Default(DefaultFrame)
The response for the default struct log tracer
CallTracer(CallFrame)
The response for call tracer
FlatCallTracer(FlatCallFrame)
The response for the flat call tracer
FourByteTracer(FourByteFrame)
The response for four byte tracer
PreStateTracer(PreStateFrame)
The response for pre-state byte tracer
NoopTracer(NoopFrame)
An empty json response
MuxTracer(MuxFrame)
The response for mux tracer
JS(Value)
Any other trace response, such as custom javascript response objects
Implementations§
Source§impl GethTrace
impl GethTrace
Sourcepub fn try_into_default_frame(
self,
) -> Result<DefaultFrame, UnexpectedTracerError>
pub fn try_into_default_frame( self, ) -> Result<DefaultFrame, UnexpectedTracerError>
Try to convert the inner tracer to DefaultFrame
Sourcepub fn try_into_call_frame(self) -> Result<CallFrame, UnexpectedTracerError>
pub fn try_into_call_frame(self) -> Result<CallFrame, UnexpectedTracerError>
Try to convert the inner tracer to CallFrame
Sourcepub fn try_into_flat_call_frame(
self,
) -> Result<FlatCallFrame, UnexpectedTracerError>
pub fn try_into_flat_call_frame( self, ) -> Result<FlatCallFrame, UnexpectedTracerError>
Try to convert the inner tracer to FlatCallFrame
Sourcepub fn try_into_four_byte_frame(
self,
) -> Result<FourByteFrame, UnexpectedTracerError>
pub fn try_into_four_byte_frame( self, ) -> Result<FourByteFrame, UnexpectedTracerError>
Try to convert the inner tracer to FourByteFrame
Sourcepub fn try_into_pre_state_frame(
self,
) -> Result<PreStateFrame, UnexpectedTracerError>
pub fn try_into_pre_state_frame( self, ) -> Result<PreStateFrame, UnexpectedTracerError>
Try to convert the inner tracer to PreStateFrame
Sourcepub fn try_into_noop_frame(self) -> Result<NoopFrame, UnexpectedTracerError>
pub fn try_into_noop_frame(self) -> Result<NoopFrame, UnexpectedTracerError>
Try to convert the inner tracer to NoopFrame
Sourcepub fn try_into_mux_frame(self) -> Result<MuxFrame, UnexpectedTracerError>
pub fn try_into_mux_frame(self) -> Result<MuxFrame, UnexpectedTracerError>
Try to convert the inner tracer to MuxFrame
Sourcepub fn try_into_json_value(self) -> Result<Value, UnexpectedTracerError>
pub fn try_into_json_value(self) -> Result<Value, UnexpectedTracerError>
Try to convert the inner tracer to serde_json::Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GethTrace
impl<'de> Deserialize<'de> for GethTrace
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 From<DefaultFrame> for GethTrace
impl From<DefaultFrame> for GethTrace
Source§fn from(value: DefaultFrame) -> Self
fn from(value: DefaultFrame) -> Self
Source§impl From<FourByteFrame> for GethTrace
impl From<FourByteFrame> for GethTrace
Source§fn from(value: FourByteFrame) -> Self
fn from(value: FourByteFrame) -> Self
Source§impl From<PreStateFrame> for GethTrace
impl From<PreStateFrame> for GethTrace
Source§fn from(value: PreStateFrame) -> Self
fn from(value: PreStateFrame) -> Self
Source§impl From<Vec<LocalizedTransactionTrace>> for GethTrace
impl From<Vec<LocalizedTransactionTrace>> for GethTrace
Source§fn from(value: FlatCallFrame) -> Self
fn from(value: FlatCallFrame) -> Self
impl Eq for GethTrace
impl StructuralPartialEq for GethTrace
Auto Trait Implementations§
impl !Freeze for GethTrace
impl RefUnwindSafe for GethTrace
impl Send for GethTrace
impl Sync for GethTrace
impl Unpin for GethTrace
impl UnwindSafe for GethTrace
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