pub enum EnvelopeError {
Show 14 variants
InvalidSignature(SignatureError),
PqSignatureInvalid(String),
SignerMismatch {
expected: String,
actual: String,
},
InvalidPublicKey {
expected: usize,
actual: usize,
},
Serialization(Error),
Schema(NotInSchema),
InvalidHmac,
KeyExchange(String),
MissingField(&'static str),
ReplayAttack(String),
InvalidTopicFormat,
Encryption(String),
Decryption(String),
MacVerification,
}Expand description
Errors that can occur during envelope operations.
Variants§
InvalidSignature(SignatureError)
Signature verification failed.
PqSignatureInvalid(String)
Post-quantum signature verification failed.
SignerMismatch
Signer public key doesn’t match expected key.
InvalidPublicKey
Invalid public key format.
Serialization(Error)
Cap’n Proto serialization/deserialization failed.
Schema(NotInSchema)
Cap’n Proto schema mismatch.
InvalidHmac
HMAC verification failed.
KeyExchange(String)
Key exchange failed.
MissingField(&'static str)
Missing required field.
ReplayAttack(String)
Replay attack detected (duplicate nonce or old timestamp).
InvalidTopicFormat
Invalid topic format (not valid hex).
Encryption(String)
AES-GCM encryption failed.
Decryption(String)
AES-GCM decryption failed (wrong key, tampered ciphertext, or AAD mismatch).
MacVerification
MAC verification failed.
Trait Implementations§
Source§impl Debug for EnvelopeError
impl Debug for EnvelopeError
Source§impl Display for EnvelopeError
impl Display for EnvelopeError
Source§impl Error for EnvelopeError
impl Error for EnvelopeError
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<EnvelopeError> for RpcError
impl From<EnvelopeError> for RpcError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for EnvelopeError
impl From<Error> for EnvelopeError
Source§impl From<Error> for EnvelopeError
impl From<Error> for EnvelopeError
Auto Trait Implementations§
impl Freeze for EnvelopeError
impl !RefUnwindSafe for EnvelopeError
impl Send for EnvelopeError
impl Sync for EnvelopeError
impl Unpin for EnvelopeError
impl UnsafeUnpin for EnvelopeError
impl !UnwindSafe for EnvelopeError
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
§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> 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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more