pub enum EmailError {
NotConfigured,
InvalidAddress(String),
Build(String),
Transport(String),
Send(String),
Timeout,
}Variants§
NotConfigured
No relay configured (no host or no password) — email is disabled.
InvalidAddress(String)
A recipient/from address failed to parse.
Build(String)
Building the MIME message failed.
Transport(String)
Building the SMTP transport failed (bad host/TLS).
Send(String)
The relay rejected the send.
Timeout
The send exceeded [SEND_TIMEOUT].
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
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()
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