Enum instant_acme::Error
source · pub enum Error {
Api(Problem),
Base64(DecodeError),
Crypto(Unspecified),
CryptoKey(KeyRejected),
Http(Error),
InvalidUri(InvalidUri),
Json(Error),
Str(&'static str),
}
Expand description
Error type for instant-acme
Variants§
Api(Problem)
An JSON problem as returned by the ACME server
RFC 8555 uses problem documents as described in RFC 7807.
Base64(DecodeError)
Failed to base64-decode data
Crypto(Unspecified)
Failed from cryptographic operations
CryptoKey(KeyRejected)
Failed to instantiate a private key
Http(Error)
HTTP request failure
InvalidUri(InvalidUri)
Invalid ACME server URL
Json(Error)
Failed to (de)serialize a JSON object
Str(&'static str)
Miscellaneous errors
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<InvalidUri> for Error
impl From<InvalidUri> for Error
source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
source§impl From<KeyRejected> for Error
impl From<KeyRejected> for Error
source§fn from(source: KeyRejected) -> Self
fn from(source: KeyRejected) -> Self
Converts to this type from the input type.
source§impl From<Unspecified> for Error
impl From<Unspecified> for Error
source§fn from(source: Unspecified) -> Self
fn from(source: Unspecified) -> Self
Converts to this type from the input type.