#[non_exhaustive]pub enum WhoIsError {
SerdeJsonError(Error),
IOError(Error),
HostError(HostError),
Elapsed(Elapsed),
MapError(&'static str),
}Expand description
The error type of this crate.
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.
SerdeJsonError(Error)
The server list is not valid JSON.
IOError(Error)
Reading the server list, or talking to a WHOIS server, failed.
HostError(HostError)
The target of a lookup is not a valid domain or IP.
Elapsed(Elapsed)
Available on crate feature
tokio only.An asynchronous operation did not finish before its timeout.
MapError(&'static str)
This kind of errors is recommended to be panic!
Trait Implementations§
Source§impl Debug for WhoIsError
impl Debug for WhoIsError
Source§impl Display for WhoIsError
impl Display for WhoIsError
Source§impl Error for WhoIsError
impl Error for WhoIsError
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<Elapsed> for WhoIsError
Available on crate feature tokio only.
impl From<Elapsed> for WhoIsError
Available on crate feature
tokio only.Source§impl From<Error> for WhoIsError
impl From<Error> for WhoIsError
Source§impl From<Error> for WhoIsError
impl From<Error> for WhoIsError
Auto Trait Implementations§
impl !RefUnwindSafe for WhoIsError
impl !UnwindSafe for WhoIsError
impl Freeze for WhoIsError
impl Send for WhoIsError
impl Sync for WhoIsError
impl Unpin for WhoIsError
impl UnsafeUnpin for WhoIsError
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