pub enum WhoisError {
InvalidDomain(String),
InvalidIpAddress(String),
UnsupportedIpAddress(String),
UnsupportedTld(String),
Timeout,
IoError(Error),
HttpError(Error),
RegexError(Error),
ResponseTooLarge,
InvalidUtf8,
ConfigError(ConfigError),
Internal(String),
}Variants§
InvalidDomain(String)
InvalidIpAddress(String)
UnsupportedIpAddress(String)
UnsupportedTld(String)
Timeout
IoError(Error)
HttpError(Error)
RegexError(Error)
ResponseTooLarge
InvalidUtf8
ConfigError(ConfigError)
Internal(String)
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
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<ConfigError> for WhoisError
impl From<ConfigError> for WhoisError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Elapsed> for WhoisError
impl From<Elapsed> for WhoisError
Source§impl From<Error> for WhoisError
impl From<Error> for WhoisError
Source§impl From<Error> for WhoisError
impl From<Error> for WhoisError
Source§impl From<Error> for WhoisError
impl From<Error> for WhoisError
Source§impl IntoResponse for WhoisError
Available on crate feature server only.
impl IntoResponse for WhoisError
Available on crate feature
server only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for WhoisError
impl !RefUnwindSafe for WhoisError
impl Send for WhoisError
impl Sync for WhoisError
impl Unpin for WhoisError
impl !UnwindSafe 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