pub enum CustomHostnameError {
NotConfigured,
Refused(HostnameRefusal),
NotFound,
AlreadyExists,
Unauthorized,
RateLimited,
Rejected(String),
Provider(String),
Transport(String),
}Expand description
Custom-hostname failures. Every variant that carries the provider’s own
text is scrubbed in Display (issue #235), the same way
MailError’s is; Debug stays raw for tests.
Variants§
NotConfigured
No zone or token is configured — answered before any request.
Refused(HostnameRefusal)
The hostname failed check_hostname; it was never sent to the
provider.
NotFound
The provider has no such hostname.
AlreadyExists
The hostname is already claimed at the provider.
The token was rejected or lacks permission.
RateLimited
Too many requests; retry later.
Rejected(String)
The provider refused the request (a 4xx with a message).
Provider(String)
The provider failed on its side (a 5xx, an unparseable envelope).
Transport(String)
The request never got an answer: a socket, a DNS failure, a timeout.
Trait Implementations§
Source§impl Clone for CustomHostnameError
impl Clone for CustomHostnameError
Source§impl Debug for CustomHostnameError
impl Debug for CustomHostnameError
Source§impl Display for CustomHostnameError
impl Display for CustomHostnameError
impl Eq for CustomHostnameError
Source§impl Error for CustomHostnameError
impl Error for CustomHostnameError
1.30.0 · 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 PartialEq for CustomHostnameError
impl PartialEq for CustomHostnameError
impl StructuralPartialEq for CustomHostnameError
Auto Trait Implementations§
impl Freeze for CustomHostnameError
impl RefUnwindSafe for CustomHostnameError
impl Send for CustomHostnameError
impl Sync for CustomHostnameError
impl Unpin for CustomHostnameError
impl UnsafeUnpin for CustomHostnameError
impl UnwindSafe for CustomHostnameError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.