#[non_exhaustive]pub enum AcmeErrorCode {
BadNonce,
Other(String),
}Expand description
Specific code indicating the kind of error that an ACME server encountered.
These codes are specified in RFC 8885.
Not all codes are implemented here.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadNonce
A bad nonce was sent with the request. Try again with a new nonce.
Other(String)
Some other error occured.
Trait Implementations§
Source§impl Clone for AcmeErrorCode
impl Clone for AcmeErrorCode
Source§fn clone(&self) -> AcmeErrorCode
fn clone(&self) -> AcmeErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcmeErrorCode
impl Debug for AcmeErrorCode
Source§impl Display for AcmeErrorCode
impl Display for AcmeErrorCode
Source§impl From<String> for AcmeErrorCode
impl From<String> for AcmeErrorCode
Auto Trait Implementations§
impl Freeze for AcmeErrorCode
impl RefUnwindSafe for AcmeErrorCode
impl Send for AcmeErrorCode
impl Sync for AcmeErrorCode
impl Unpin for AcmeErrorCode
impl UnwindSafe for AcmeErrorCode
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