Enum SignatureError
pub enum SignatureError {
SignatureSerialization {
source: SerializationError,
},
SigningFailed {
source: Error,
},
VerificationFailed {
source: Error,
},
ParseSignatureFromBytes {
source: Error,
},
ParseSignatureFromBase58 {
source: Error,
},
}Expand description
Errors related to signature operations
Variants§
SignatureSerialization
Serialization failed
Fields
§
source: SerializationErrorunderlying error
SigningFailed
Signing failed
Fields
§
source: Errorunderlying error
VerificationFailed
Signature verfication failed
Fields
§
source: Errorunderlying error
ParseSignatureFromBytes
Signature parsing from bytes failed
Fields
§
source: Errorunderlying error
ParseSignatureFromBase58
Signature seserialization failed
Fields
§
source: Errorunderlying error
Trait Implementations§
§impl Debug for SignatureError
impl Debug for SignatureError
§impl Display for SignatureError
impl Display for SignatureError
§impl Error for SignatureError
impl Error for SignatureError
§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 SignatureError
impl ErrorCompat for SignatureError
§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 more§impl From<SerializationError> for SignatureError
impl From<SerializationError> for SignatureError
§fn from(source: SerializationError) -> SignatureError
fn from(source: SerializationError) -> SignatureError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignatureError
impl !RefUnwindSafe for SignatureError
impl Send for SignatureError
impl Sync for SignatureError
impl Unpin for SignatureError
impl !UnwindSafe for SignatureError
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