pub enum EmailError {
InvalidAddress(String),
MissingField(String),
BackendError(String),
SmtpError(String),
IoError(Error),
TemplateError(String),
AttachmentError(String),
InvalidHeader(String),
HeaderInjection(String),
}Variants§
InvalidAddress(String)
MissingField(String)
BackendError(String)
SmtpError(String)
IoError(Error)
TemplateError(String)
AttachmentError(String)
InvalidHeader(String)
HeaderInjection(String)
Implementations§
Source§impl EmailError
impl EmailError
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Returns true if this is a transient error that can be safely suppressed by fail_silently mode.
Configuration errors, authentication failures, and security errors are never considered transient and will always propagate even when fail_silently is enabled.
Trait Implementations§
Source§impl Debug for EmailError
impl Debug for EmailError
Source§impl Display for EmailError
impl Display for EmailError
Source§impl Error for EmailError
impl Error for EmailError
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()
Auto Trait Implementations§
impl Freeze for EmailError
impl !RefUnwindSafe for EmailError
impl Send for EmailError
impl Sync for EmailError
impl Unpin for EmailError
impl UnsafeUnpin for EmailError
impl !UnwindSafe for EmailError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP