pub enum EvmChainError {
Contract(Error),
PendingTransaction(PendingTransactionError),
Signer(Error),
ProtoConversion(ProtoConversionError),
}Expand description
Errors produced by EVM-specific SDK operations.
This error type is returned by on-chain EVM helpers such as
super::signing::sign_spend_intent.
Variants§
Contract(Error)
The underlying contract call or transaction submission failed.
PendingTransaction(PendingTransactionError)
Waiting on a pending transaction failed.
Signer(Error)
Producing the spend-intent signature failed.
ProtoConversion(ProtoConversionError)
Converting between protobuf and EVM-native types failed.
Trait Implementations§
Source§impl Debug for EvmChainError
impl Debug for EvmChainError
Source§impl Display for EvmChainError
impl Display for EvmChainError
Source§impl Error for EvmChainError
impl Error for EvmChainError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for EvmChainError
impl From<Error> for EvmChainError
Source§fn from(source: ContractError) -> Self
fn from(source: ContractError) -> Self
Converts to this type from the input type.
Source§impl From<PendingTransactionError> for EvmChainError
impl From<PendingTransactionError> for EvmChainError
Source§fn from(source: PendingTransactionError) -> Self
fn from(source: PendingTransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EvmChainError
impl !UnwindSafe for EvmChainError
impl Freeze for EvmChainError
impl Send for EvmChainError
impl Sync for EvmChainError
impl Unpin for EvmChainError
impl UnsafeUnpin for EvmChainError
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request