Enum TransactionValidationError
pub enum TransactionValidationError {
TransactionTypeValidationFailed {
source: TransactionTypeValidationError,
},
SignatureVerificationFailed {
source: SignatureError,
},
}Expand description
Errors that can occur during transaction validation.
Variants§
TransactionTypeValidationFailed
Error indicating that the transaction type validation failed.
This occurs when the transaction-specific validation rules are not satisfied.
Fields
§
source: TransactionTypeValidationErrorThe source of the type validation error providing more specific details.
SignatureVerificationFailed
Error indicating that the signature verification failed.
This occurs when the transaction signature cannot be verified against the transaction data and the signer’s public key.
Fields
§
source: SignatureErrorThe source of the signature error providing more specific details.
Trait Implementations§
§impl Debug for TransactionValidationError
impl Debug for TransactionValidationError
§impl Display for TransactionValidationError
impl Display for TransactionValidationError
§impl Error for TransactionValidationError
impl Error for TransactionValidationError
§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
§impl ErrorCompat for TransactionValidationError
impl ErrorCompat for TransactionValidationError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl Freeze for TransactionValidationError
impl !RefUnwindSafe for TransactionValidationError
impl Send for TransactionValidationError
impl Sync for TransactionValidationError
impl Unpin for TransactionValidationError
impl !UnwindSafe for TransactionValidationError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§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