Enum check_if_email_exists::smtp::SmtpError
source · pub enum SmtpError {
SocksError(SocksError),
SmtpError(Error),
TimeoutError(TimeoutError),
YahooError(YahooError),
GmailError(GmailError),
Microsoft365Error(Microsoft365Error),
SkippedDomain(String),
}
Expand description
Error occured connecting to this email server via SMTP.
Variants§
SocksError(SocksError)
Error if we’re using a SOCKS5 proxy.
SmtpError(Error)
Error when communicating with SMTP server.
TimeoutError(TimeoutError)
Time-out error.
YahooError(YahooError)
Error when verifying a Yahoo email via HTTP requests.
GmailError(GmailError)
Error when verifying a Gmail email via a HTTP request.
Microsoft365Error(Microsoft365Error)
Error when verifying a Microsoft 365 email via HTTP request.
SkippedDomain(String)
Email is in the skipped_domains
parameter.
Implementations§
source§impl SmtpError
impl SmtpError
sourcepub fn get_description(&self) -> Option<SmtpErrorDesc>
pub fn get_description(&self) -> Option<SmtpErrorDesc>
Get a human-understandable description of the error, in form of an enum SmtpErrorDesc. This only parses the following known errors:
- IP blacklisted
- IP needs reverse DNS
Trait Implementations§
source§impl From<SocksError> for SmtpError
impl From<SocksError> for SmtpError
source§fn from(e: SocksError) -> Self
fn from(e: SocksError) -> Self
Converts to this type from the input type.
source§impl From<TimeoutError> for SmtpError
impl From<TimeoutError> for SmtpError
source§fn from(e: TimeoutError) -> Self
fn from(e: TimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SmtpError
impl Send for SmtpError
impl Sync for SmtpError
impl Unpin for SmtpError
impl !UnwindSafe for SmtpError
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