pub struct EthCallManyParams<'req> { /* private fields */ }
Expand description
The parameters for an "eth_callMany"
RPC request.
Implementations§
Source§impl<'req> EthCallManyParams<'req>
impl<'req> EthCallManyParams<'req>
Sourcepub const fn new(bundles: &'req Vec<Bundle>) -> Self
pub const fn new(bundles: &'req Vec<Bundle>) -> Self
Instantiates a new EthCallManyParams
with the given bundles.
Sourcepub fn with_block(self, block: BlockId) -> Self
pub fn with_block(self, block: BlockId) -> Self
Sets the block in the StateContext
for this call.
Sourcepub fn with_transaction_index(self, tx_index: TransactionIndex) -> Self
pub fn with_transaction_index(self, tx_index: TransactionIndex) -> Self
Sets the transaction index in the StateContext
for this call.
Sourcepub const fn with_context(self, context: StateContext) -> Self
pub const fn with_context(self, context: StateContext) -> Self
Sets the state context for this call.
Sourcepub fn with_overrides(self, overrides: &'req StateOverride) -> Self
pub fn with_overrides(self, overrides: &'req StateOverride) -> Self
Sets the state overrides for this call.
Sourcepub const fn context(&self) -> Option<&StateContext>
pub const fn context(&self) -> Option<&StateContext>
Returns a reference to the state context if set.
Sourcepub fn bundles_mut(&mut self) -> &mut Vec<Bundle>
pub fn bundles_mut(&mut self) -> &mut Vec<Bundle>
Returns a mutable reference to the bundles.
Sourcepub fn overrides(&self) -> Option<&StateOverride>
pub fn overrides(&self) -> Option<&StateOverride>
Returns a reference to the state overrides if set.
Sourcepub fn into_owned(self) -> EthCallManyParams<'static>
pub fn into_owned(self) -> EthCallManyParams<'static>
Clones the bundles, context, and overrides into owned data.
Trait Implementations§
Source§impl<'req> Clone for EthCallManyParams<'req>
impl<'req> Clone for EthCallManyParams<'req>
Source§fn clone(&self) -> EthCallManyParams<'req>
fn clone(&self) -> EthCallManyParams<'req>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'req> Debug for EthCallManyParams<'req>
impl<'req> Debug for EthCallManyParams<'req>
Auto Trait Implementations§
impl<'req> Freeze for EthCallManyParams<'req>
impl<'req> RefUnwindSafe for EthCallManyParams<'req>
impl<'req> Send for EthCallManyParams<'req>
impl<'req> Sync for EthCallManyParams<'req>
impl<'req> Unpin for EthCallManyParams<'req>
impl<'req> UnwindSafe for EthCallManyParams<'req>
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§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 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: 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: 136 bytes