pub enum KeyParsingError {
Decode {
source: DecodeError,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
Key {
source: SignatureError,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
DecodeInvalidLength {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
}
Available on crate feature
key
only.Variants§
Decode
Error when decoding.
Key
Error when decoding the public key.
DecodeInvalidLength
The encoded information had the wrong length.
Trait Implementations§
Source§impl Debug for KeyParsingError
impl Debug for KeyParsingError
Source§impl Display for KeyParsingError
impl Display for KeyParsingError
Source§impl Error for KeyParsingError
impl Error for KeyParsingError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§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
Source§impl ErrorCompat for KeyParsingError
impl ErrorCompat for KeyParsingError
Source§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 moreSource§impl From<DecodeError> for KeyParsingError
impl From<DecodeError> for KeyParsingError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for KeyParsingError
impl From<Error> for KeyParsingError
Source§fn from(error: SignatureError) -> Self
fn from(error: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyParsingError
impl !RefUnwindSafe for KeyParsingError
impl Send for KeyParsingError
impl Sync for KeyParsingError
impl Unpin for KeyParsingError
impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§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
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<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more