pub enum EmailError {
Config(String),
Message(String),
Transport(String),
Provider {
provider: String,
status: u16,
body: String,
},
}Expand description
What went wrong while sending.
Variants§
Config(String)
The app’s [email] section can’t produce a working client — an unknown
provider, a missing key, no from address. Raised at startup where
possible, so a deployment fails to boot rather than failing at the first
password reset.
Message(String)
The message itself is unusable: no recipient, no body, no sender.
Transport(String)
The provider could not be reached, or timed out.
Provider
The provider answered, and said no.
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