pub struct TraceParams<Params: RpcSend> { /* private fields */ }
Available on crate feature
trace-api
only.Expand description
Parameters for a trace call.
Contains optional block id and trace types to accomodate trace_*
api calls that don’t require
them.
Implementations§
Source§impl<Params: RpcSend> TraceParams<Params>
impl<Params: RpcSend> TraceParams<Params>
Sourcepub fn new(
method: &String,
params: Params,
block_id: Option<BlockId>,
trace_types: Option<HashSet<TraceType>>,
) -> Self
pub fn new( method: &String, params: Params, block_id: Option<BlockId>, trace_types: Option<HashSet<TraceType>>, ) -> Self
Create a new TraceParams
with the given parameters.
The method
is used to determine which parameters to ignore according to the trace_*
api
spec. See https://reth.rs/jsonrpc/trace.html.
Trait Implementations§
Source§impl<Params: Clone + RpcSend> Clone for TraceParams<Params>
impl<Params: Clone + RpcSend> Clone for TraceParams<Params>
Source§fn clone(&self) -> TraceParams<Params>
fn clone(&self) -> TraceParams<Params>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Params> Freeze for TraceParams<Params>where
Params: Freeze,
impl<Params> RefUnwindSafe for TraceParams<Params>where
Params: RefUnwindSafe,
impl<Params> Send for TraceParams<Params>
impl<Params> Sync for TraceParams<Params>
impl<Params> Unpin for TraceParams<Params>
impl<Params> UnwindSafe for TraceParams<Params>where
Params: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
impl<T> RpcSend for T
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.