pub enum SetDnsError {
NetworkError,
Internal(SetDnsInternalErrorKind),
}Expand description
Errors from a set-dns request.
Variants§
NetworkError
A transient network error; the request may succeed on retry.
Internal(SetDnsInternalErrorKind)
An internal failure (URL/serde/HTTP/UTF-8). Detail kept coarse for the public surface.
Trait Implementations§
Source§impl Clone for SetDnsError
impl Clone for SetDnsError
Source§fn clone(&self) -> SetDnsError
fn clone(&self) -> SetDnsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetDnsError
impl Debug for SetDnsError
Source§impl Display for SetDnsError
impl Display for SetDnsError
impl Eq for SetDnsError
Source§impl Error for SetDnsError
impl Error for SetDnsError
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 From<Error> for SetDnsError
impl From<Error> for SetDnsError
Source§impl From<Error> for SetDnsError
impl From<Error> for SetDnsError
Source§impl From<ParseError> for SetDnsError
impl From<ParseError> for SetDnsError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for SetDnsError
impl From<Utf8Error> for SetDnsError
Source§impl PartialEq for SetDnsError
impl PartialEq for SetDnsError
Source§fn eq(&self, other: &SetDnsError) -> bool
fn eq(&self, other: &SetDnsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetDnsError
Auto Trait Implementations§
impl Freeze for SetDnsError
impl RefUnwindSafe for SetDnsError
impl Send for SetDnsError
impl Sync for SetDnsError
impl Unpin for SetDnsError
impl UnsafeUnpin for SetDnsError
impl UnwindSafe for SetDnsError
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.