#[non_exhaustive]pub enum Error {
Show 15 variants
InvalidConfiguration,
LimitExceeded,
MalformedEnvelope,
UnsupportedVersion,
UnsupportedSuite,
UnsupportedMethod,
UnknownRecipientKey,
InvalidCredential,
AuthenticationFailed,
ReplayRejected,
InvalidRequestTime,
ReplayDecisionMismatch,
ClockUnavailable,
EntropyUnavailable,
CryptoFailure,
}Expand description
Errors returned by the protocol engine.
Messages contain no credentials, plaintext, ciphertext, or parser offsets.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidConfiguration
Configuration is missing, inconsistent, or outside the protocol limits.
LimitExceeded
A caller-provided value exceeds a configured or hard protocol limit.
MalformedEnvelope
The envelope is truncated, has trailing data, or has an invalid field.
UnsupportedVersion
The envelope uses a protocol version this implementation does not support.
UnsupportedSuite
The envelope names a cryptographic suite outside protocol version 3.
UnsupportedMethod
The request uses an HTTP method outside protocol version 3.
UnknownRecipientKey
The request names a recipient key that is not configured on this server.
InvalidCredential
A supplied PSK violates the credential length or public-ID rules.
AuthenticationFailed
An authenticated operation failed.
ReplayRejected
The replay-admission provider rejected this authenticated request.
InvalidRequestTime
The authenticated request timestamp is expired or too far in the future.
ReplayDecisionMismatch
A replay decision was created for another authenticated request.
The platform could not provide a usable Unix time.
The platform could not provide cryptographically secure entropy.
CryptoFailure
A cryptographic primitive rejected otherwise bounded input.
Implementations§
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()