pub struct EthCall<'coder, D, N>where
N: Network,
D: CallDecoder,{ /* private fields */ }
Expand description
An alloy_provider::EthCall
with an abi decoder.
Implementations§
Source§impl<'coder, D, N> EthCall<'coder, D, N>where
N: Network,
D: CallDecoder,
impl<'coder, D, N> EthCall<'coder, D, N>where
N: Network,
D: CallDecoder,
Source§impl<D, N> EthCall<'_, D, N>where
N: Network,
D: CallDecoder,
impl<D, N> EthCall<'_, D, N>where
N: Network,
D: CallDecoder,
Sourcepub fn with_decoder<E>(self, decoder: &E) -> EthCall<'_, E, N>where
E: CallDecoder,
pub fn with_decoder<E>(self, decoder: &E) -> EthCall<'_, E, N>where
E: CallDecoder,
Swap the decoder for this call.
Sourcepub fn overrides(self, overrides: impl Into<StateOverride>) -> Self
pub fn overrides(self, overrides: impl Into<StateOverride>) -> Self
Set the state overrides for this call.
Sourcepub fn account_override(
self,
address: Address,
account_overrides: AccountOverride,
) -> Self
pub fn account_override( self, address: Address, account_overrides: AccountOverride, ) -> Self
Appends a single AccountOverride to the state override.
Creates a new StateOverride
if none has been set yet.
Sourcepub fn account_overrides(
self,
overrides: impl IntoIterator<Item = (Address, AccountOverride)>,
) -> Self
pub fn account_overrides( self, overrides: impl IntoIterator<Item = (Address, AccountOverride)>, ) -> Self
Extends the given AccountOverride to the state override.
Creates a new StateOverride
if none has been set yet.
Trait Implementations§
Source§impl<'coder, D, N> IntoFuture for EthCall<'coder, D, N>
impl<'coder, D, N> IntoFuture for EthCall<'coder, D, N>
Source§type Output = Result<<D as CallDecoder>::CallOutput, Error>
type Output = Result<<D as CallDecoder>::CallOutput, Error>
The output that the future will produce on completion.
Source§type IntoFuture = EthCallFut<'coder, D, N>
type IntoFuture = EthCallFut<'coder, D, N>
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<'coder, D, N> Freeze for EthCall<'coder, D, N>
impl<'coder, D, N> !RefUnwindSafe for EthCall<'coder, D, N>
impl<'coder, D, N> Send for EthCall<'coder, D, N>where
D: Sync,
impl<'coder, D, N> Sync for EthCall<'coder, D, N>where
D: Sync,
impl<'coder, D, N> Unpin for EthCall<'coder, D, N>
impl<'coder, D, N> !UnwindSafe for EthCall<'coder, D, 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§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> 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