pub enum ReadPayloadError {
InvalidSignature,
UnexpectedPayloadType {
expected: Vec<u8>,
got: Vec<u8>,
},
}
Expand description
Errors that occur whilst extracting the payload of a SignedEnvelope
.
Variants§
InvalidSignature
The signature on the signed envelope does not verify with the provided domain separation string.
UnexpectedPayloadType
The payload contained in the envelope is not of the expected type.
Trait Implementations§
source§impl Debug for ReadPayloadError
impl Debug for ReadPayloadError
source§impl Display for ReadPayloadError
impl Display for ReadPayloadError
source§impl Error for ReadPayloadError
impl Error for ReadPayloadError
1.30.0 · 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<ReadPayloadError> for FromEnvelopeError
impl From<ReadPayloadError> for FromEnvelopeError
source§fn from(source: ReadPayloadError) -> Self
fn from(source: ReadPayloadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadPayloadError
impl RefUnwindSafe for ReadPayloadError
impl Send for ReadPayloadError
impl Sync for ReadPayloadError
impl Unpin for ReadPayloadError
impl UnwindSafe for ReadPayloadError
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 more