#[non_exhaustive]pub enum CcipReadError {
Transport(TransportError),
MissingTarget,
SenderMismatch {
sender: Address,
target: Address,
},
TooManyRedirects(usize),
InvalidOffchainLookup(Error),
Gateway(CcipReadGatewayError),
InvalidBatch(String),
InvalidConfig(String),
ResourceLimit(String),
}ccip-read only.Expand description
Errors produced while executing a CCIP Read call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Transport(TransportError)
The underlying eth_call failed without a valid OffchainLookup revert.
MissingTarget
CCIP Read cannot be used for a contract-creation call.
SenderMismatch
The revert’s sender did not match the contract that was called.
TooManyRedirects(usize)
The redirect limit was exceeded.
InvalidOffchainLookup(Error)
The revert data had the OffchainLookup selector but invalid ABI data.
Gateway(CcipReadGatewayError)
A gateway request failed.
InvalidBatch(String)
An ENSIP-21 batch request was malformed or exceeded configured limits.
InvalidConfig(String)
The CCIP Read client configuration is invalid.
ResourceLimit(String)
A CCIP Read resource limit was exceeded.
Trait Implementations§
Source§impl Debug for CcipReadError
impl Debug for CcipReadError
Source§impl Display for CcipReadError
impl Display for CcipReadError
Source§impl Error for CcipReadError
impl Error for CcipReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<CcipReadGatewayError> for CcipReadError
impl From<CcipReadGatewayError> for CcipReadError
Source§fn from(source: CcipReadGatewayError) -> Self
fn from(source: CcipReadGatewayError) -> Self
Source§impl From<RpcError<TransportErrorKind>> for CcipReadError
impl From<RpcError<TransportErrorKind>> for CcipReadError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for CcipReadError
impl !UnwindSafe for CcipReadError
impl Freeze for CcipReadError
impl Send for CcipReadError
impl Sync for CcipReadError
impl Unpin for CcipReadError
impl UnsafeUnpin for CcipReadError
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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
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: 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: 56 bytes
Size for each variant:
Transport: 56 bytesMissingTarget: 0 bytesSenderMismatch: 48 bytesTooManyRedirects: 16 bytesInvalidOffchainLookup: 56 bytesGateway: 40 bytesInvalidBatch: 32 bytesInvalidConfig: 32 bytesResourceLimit: 32 bytes