pub struct CcipReadClient<G> { /* private fields */ }Available on crate feature
ccip-read only.Expand description
Executes eth_call requests that follow ERC-3668 OffchainLookup reverts.
Implementations§
Source§impl<G> CcipReadClient<G>
impl<G> CcipReadClient<G>
Sourcepub const fn with_config(self, config: CcipReadConfig) -> Self
pub const fn with_config(self, config: CcipReadConfig) -> Self
Sets the limits used by this client.
Sourcepub const fn config(&self) -> &CcipReadConfig
pub const fn config(&self) -> &CcipReadConfig
Returns the configured limits.
Source§impl<G: CcipReadGateway> CcipReadClient<G>
impl<G: CcipReadGateway> CcipReadClient<G>
Sourcepub async fn call<P, N>(
&self,
provider: &P,
transaction: N::TransactionRequest,
) -> Result<Bytes, CcipReadError>
pub async fn call<P, N>( &self, provider: &P, transaction: N::TransactionRequest, ) -> Result<Bytes, CcipReadError>
Executes a CCIP Read enabled call against the latest block.
Sourcepub async fn call_at<P, N>(
&self,
provider: &P,
transaction: N::TransactionRequest,
block: BlockId,
) -> Result<Bytes, CcipReadError>
pub async fn call_at<P, N>( &self, provider: &P, transaction: N::TransactionRequest, block: BlockId, ) -> Result<Bytes, CcipReadError>
Executes a CCIP Read enabled call against block.
The initial call and every callback call are issued against block. With a block tag such
as latest, the underlying state can move between those calls while gateway requests are
in flight.
Trait Implementations§
Source§impl<G: Clone> Clone for CcipReadClient<G>
impl<G: Clone> Clone for CcipReadClient<G>
Source§fn clone(&self) -> CcipReadClient<G>
fn clone(&self) -> CcipReadClient<G>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<G: Debug> Debug for CcipReadClient<G>
impl<G: Debug> Debug for CcipReadClient<G>
Source§impl Default for CcipReadClient<HttpCcipReadGateway>
Available on crate feature ccip-read-http only.
impl Default for CcipReadClient<HttpCcipReadGateway>
Available on crate feature
ccip-read-http only.Auto Trait Implementations§
impl<G> Freeze for CcipReadClient<G>where
G: Freeze,
impl<G> RefUnwindSafe for CcipReadClient<G>where
G: RefUnwindSafe,
impl<G> Send for CcipReadClient<G>where
G: Send,
impl<G> Sync for CcipReadClient<G>where
G: Sync,
impl<G> Unpin for CcipReadClient<G>where
G: Unpin,
impl<G> UnsafeUnpin for CcipReadClient<G>where
G: UnsafeUnpin,
impl<G> UnwindSafe for CcipReadClient<G>where
G: UnwindSafe,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§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> ⓘ
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.