[−][src]Enum mail_smtp::error::MailSendError
Error used when sending a mail fails.
Failing to encode a mail before sending
it also counts as a MailSendError
, as
it's done "on the fly" when sending a mail.
Variants
Mail(MailError)
Something is wrong with the mail instance (e.g. it can't be encoded).
This can happen for a number of reasons including:
- Missing header fields.
- Invalid header fields.
- Encoding header fields fails.
- Loading resources failed (resources like e.g. appendix, logo embedded in html mail, etc.)
Smtp(LogicError)
Sending the mail failed.
This can happen for a number of reasons including:
- Server rejects mail transaction because of send or receiver address or body data (e.g. body to long).
- Mail address requires smtputf8 support, which is not given.
- Server rejects sending the mail for other reasons (it's closing, overloaded etc.).
Connecting(ConnectingFailed)
Setting up the connection failed.
Failures can include but are not limited to:
- Connecting with TCP failed.
- Starting TLS failed.
- Server does not want to be used (e.g. failure on sending EHLO).
- Authentication failed.
Io(Error)
An I/O error happened while using the connection.
This is mainly for I/O errors after the setup of the connection was successful, which normally includes sending Ehlo and Auth commands.
Trait Implementations
impl Debug for MailSendError
[src]
impl Display for MailSendError
[src]
impl Fail for MailSendError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl From<ConnectingFailed> for MailSendError
[src]
fn from(err: ConnectingFailed) -> Self
[src]
impl From<Error> for MailSendError
[src]
impl From<GeneralError> for MailSendError
[src]
fn from(err: GeneralError) -> Self
[src]
impl From<LogicError> for MailSendError
[src]
fn from(err: LogicError) -> Self
[src]
impl From<MailError> for MailSendError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MailSendError
impl Send for MailSendError
impl Sync for MailSendError
impl Unpin for MailSendError
impl !UnwindSafe for MailSendError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl<T> From<T> for T
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,