Struct alloy_contract::EthCall
source · pub struct EthCall<'req, 'coder, D, T, N>{ /* private fields */ }
Expand description
An alloy_provider::EthCall
with an abi decoder.
Implementations§
source§impl<'req, D, T, N> EthCall<'req, '_, D, T, N>
impl<'req, D, T, N> EthCall<'req, '_, D, T, N>
sourcepub fn with_decoder<'new_coder, E>(
self,
decoder: &'new_coder E,
) -> EthCall<'req, 'new_coder, E, T, N>where
E: CallDecoder,
pub fn with_decoder<'new_coder, E>(
self,
decoder: &'new_coder E,
) -> EthCall<'req, 'new_coder, E, T, N>where
E: CallDecoder,
Swap the decoder for this call.
sourcepub fn overrides(self, overrides: &'req StateOverride) -> Self
pub fn overrides(self, overrides: &'req StateOverride) -> Self
Set the state overrides for this call.
Trait Implementations§
source§impl<'req, 'coder, D, T, N> IntoFuture for EthCall<'req, 'coder, D, T, N>
impl<'req, 'coder, D, T, N> IntoFuture for EthCall<'req, 'coder, D, T, N>
§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.
§type IntoFuture = EthCallFut<'req, 'coder, D, T, N>
type IntoFuture = EthCallFut<'req, 'coder, D, T, 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<'req, 'coder, D, T, N> Freeze for EthCall<'req, 'coder, D, T, N>
impl<'req, 'coder, D, T, N> !RefUnwindSafe for EthCall<'req, 'coder, D, T, N>
impl<'req, 'coder, D, T, N> Send for EthCall<'req, 'coder, D, T, N>where
D: Sync,
impl<'req, 'coder, D, T, N> Sync for EthCall<'req, 'coder, D, T, N>where
D: Sync,
impl<'req, 'coder, D, T, N> Unpin for EthCall<'req, 'coder, D, T, N>
impl<'req, 'coder, D, T, N> !UnwindSafe for EthCall<'req, 'coder, D, T, 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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