Enum Error

Source
pub enum Error {
Show 31 variants AccountDoesNotExist, AlreadyRevoked, BadCSR, BadNonce, BadPublicKey, BadRevocationReason, BadSignatureAlgorithm, Caa, Compound, Connection, Dns, ExternalAccountRequired, IncorrectResponse, InvalidContact, Malformed, OrderNotReady, RateLimited, RejectedIdentifier, ServerInternal, Tls, Unauthorized, UnsupportedContact, UnsupportedIdentifier, UserActionRequired, FromUtf8Error(Utf8Error), FromReqwestError(Error), FromRsaError(ErrorStack), FromSerdeError(Error), FromToStrError(ToStrError), FromIoError(Error), NoHttpChallengePresent,
}
Expand description

An enumeration of all possible error types.

Variants§

§

AccountDoesNotExist

The request specified an account that does not exist

§

AlreadyRevoked

The request specified a certificate to be revoked that has already been revoked

§

BadCSR

The CSR is unacceptable (e.g., due to a short key)

§

BadNonce

The client sent an unacceptable anti-replay nonce

§

BadPublicKey

The JWS was signed by a public key the server does not support

§

BadRevocationReason

The revocation reason provided is not allowed by the server

§

BadSignatureAlgorithm

The JWS was signed with an algorithm the server does not support

§

Caa

Certification Authority Authorization (CAA) records forbid the CA from issuing a certificate

§

Compound

Specific error conditions are indicated in the “subproblems” array

§

Connection

The server could not connect to validation target

§

Dns

There was a problem with a DNS query during identifier validation

§

ExternalAccountRequired

The request must include a value for the “externalAccountBinding” field

§

IncorrectResponse

Response received didn’t match the challenge’s requirements

§

InvalidContact

A contact URL for an account was invalid

§

Malformed

The request message was malformed

§

OrderNotReady

The request attempted to finalize an order that is not ready to be finalized

§

RateLimited

The request exceeds a rate limit

§

RejectedIdentifier

The server will not issue certificates for the identifier

§

ServerInternal

The server experienced an internal error

§

Tls

The server received a TLS error during validation

§

Unauthorized

The client lacks sufficient authorization

§

UnsupportedContact

A contact URL for an account used an unsupported protocol scheme

§

UnsupportedIdentifier

An identifier is of an unsupported type

§

UserActionRequired

Visit the “instance” URL and take actions specified there

§

FromUtf8Error(Utf8Error)

Error converted from an Utf8 error

§

FromReqwestError(Error)

Error converted from a reqwest error

§

FromRsaError(ErrorStack)

Error converted from an ErrorStack Error (occurs during RSA generation)

§

FromSerdeError(Error)

Error converted from a json serde error

§

FromToStrError(ToStrError)

Error converted from a reqwest ToStrError

§

FromIoError(Error)

§

NoHttpChallengePresent

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ErrorStack> for Error

Source§

fn from(error: ErrorStack) -> Self

Converts to this type from the input type.
Source§

impl From<ToStrError> for Error

Source§

fn from(error: ToStrError) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for Error

Source§

fn from(error: Utf8Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.