pub struct EthCallParams<'req, N: Network> { /* private fields */ }
Expand description
The parameters for an "eth_call"
RPC request.
Implementations§
Source§impl<'req, N> EthCallParams<'req, N>where
N: Network,
impl<'req, N> EthCallParams<'req, N>where
N: Network,
Sourcepub const fn new(data: &'req N::TransactionRequest) -> Self
pub const fn new(data: &'req N::TransactionRequest) -> Self
Instantiates a new EthCallParams
with the given data (transaction).
Sourcepub const fn with_block(self, block: BlockId) -> Self
pub const fn with_block(self, block: BlockId) -> Self
Sets the block to use 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 fn overrides(&self) -> Option<&StateOverride>
pub fn overrides(&self) -> Option<&StateOverride>
Returns a reference to the state overrides if set.
Sourcepub fn data(&self) -> &N::TransactionRequest
pub fn data(&self) -> &N::TransactionRequest
Returns a reference to the transaction data.
Sourcepub fn into_owned(self) -> EthCallParams<'static, N>
pub fn into_owned(self) -> EthCallParams<'static, N>
Clones the tx data and overrides into owned data.
Trait Implementations§
Source§impl<'req, N: Clone + Network> Clone for EthCallParams<'req, N>where
N::TransactionRequest: Clone,
impl<'req, N: Clone + Network> Clone for EthCallParams<'req, N>where
N::TransactionRequest: Clone,
Source§fn clone(&self) -> EthCallParams<'req, N>
fn clone(&self) -> EthCallParams<'req, N>
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<'req, N: Debug + Network> Debug for EthCallParams<'req, N>where
N::TransactionRequest: Debug,
impl<'req, N: Debug + Network> Debug for EthCallParams<'req, N>where
N::TransactionRequest: Debug,
Auto Trait Implementations§
impl<'req, N> Freeze for EthCallParams<'req, N>
impl<'req, N> RefUnwindSafe for EthCallParams<'req, N>
impl<'req, N> Send for EthCallParams<'req, N>
impl<'req, N> Sync for EthCallParams<'req, N>
impl<'req, N> Unpin for EthCallParams<'req, N>
impl<'req, N> UnwindSafe for EthCallParams<'req, N>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 more