pub struct EthCallMany<'req, N, Resp, Output = Resp, Map = fn(Resp) -> Output>{ /* private fields */ }
Expand description
A builder for an "eth_callMany"
RPC request.
Implementations§
Source§impl<'req, N, Resp> EthCallMany<'req, N, Resp>
impl<'req, N, Resp> EthCallMany<'req, N, Resp>
Source§impl<'req, N, Resp, Output, Map> EthCallMany<'req, N, Resp, Output, Map>
impl<'req, N, Resp, Output, Map> EthCallMany<'req, N, Resp, Output, Map>
Sourcepub fn map<NewOutput, NewMap>(
self,
map: NewMap,
) -> EthCallMany<'req, N, Resp, NewOutput, NewMap>where
NewMap: Fn(Resp) -> NewOutput,
pub fn map<NewOutput, NewMap>(
self,
map: NewMap,
) -> EthCallMany<'req, N, Resp, NewOutput, NewMap>where
NewMap: Fn(Resp) -> NewOutput,
Set a mapping function to transform the response.
Sourcepub fn block(self, block: BlockId) -> Self
pub fn block(self, block: BlockId) -> Self
Set the BlockId
in the StateContext
.
Sourcepub fn transaction_index(self, tx_index: TransactionIndex) -> Self
pub fn transaction_index(self, tx_index: TransactionIndex) -> Self
Set the TransactionIndex
in the StateContext
.
Sourcepub fn context(self, context: &'req StateContext) -> Self
pub fn context(self, context: &'req StateContext) -> Self
Set the StateContext
for the call.
Sourcepub fn overrides(self, overrides: &'req StateOverride) -> Self
pub fn overrides(self, overrides: &'req StateOverride) -> Self
Set the StateOverride
for the call.
Sourcepub fn extend_bundles(self, bundles: &'req [Bundle]) -> Self
pub fn extend_bundles(self, bundles: &'req [Bundle]) -> Self
Extend the bundles for the call.
Trait Implementations§
Source§impl<'req, N, Resp, Output: Clone, Map> Clone for EthCallMany<'req, N, Resp, Output, Map>
impl<'req, N, Resp, Output: Clone, Map> Clone for EthCallMany<'req, N, Resp, Output, Map>
Source§fn clone(&self) -> EthCallMany<'req, N, Resp, Output, Map>
fn clone(&self) -> EthCallMany<'req, N, Resp, Output, Map>
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 moreSource§impl<N, Resp, Output, Map> Debug for EthCallMany<'_, N, Resp, Output, Map>
impl<N, Resp, Output, Map> Debug for EthCallMany<'_, N, Resp, Output, Map>
Source§impl<'req, N, Resp, Output, Map> IntoFuture for EthCallMany<'req, N, Resp, Output, Map>
impl<'req, N, Resp, Output, Map> IntoFuture for EthCallMany<'req, N, Resp, Output, Map>
Source§type Output = Result<Output, RpcError<TransportErrorKind>>
type Output = Result<Output, RpcError<TransportErrorKind>>
The output that the future will produce on completion.
Source§type IntoFuture = CallManyFut<'req, N, Resp, Output, Map>
type IntoFuture = CallManyFut<'req, N, Resp, Output, Map>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'req, N, Resp, Output, Map> Freeze for EthCallMany<'req, N, Resp, Output, Map>where
Map: Freeze,
impl<'req, N, Resp, Output = Resp, Map = fn(_: Resp) -> Output> !RefUnwindSafe for EthCallMany<'req, N, Resp, Output, Map>
impl<'req, N, Resp, Output, Map> Send for EthCallMany<'req, N, Resp, Output, Map>where
Map: Send,
impl<'req, N, Resp, Output, Map> Sync for EthCallMany<'req, N, Resp, Output, Map>where
Map: Sync,
impl<'req, N, Resp, Output, Map> Unpin for EthCallMany<'req, N, Resp, Output, Map>where
Map: Unpin,
impl<'req, N, Resp, Output = Resp, Map = fn(_: Resp) -> Output> !UnwindSafe for EthCallMany<'req, N, Resp, Output, Map>
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
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.