Enum new_tokio_smtp::chain::OnError
source · pub enum OnError {
StopAndReset,
Stop,
}
Expand description
Decide if a error should just stop sending commands or should
also trigger the sending of RSET
stopping the current mail
transaction
Variants§
Trait Implementations§
source§impl HandleErrorInChain for OnError
impl HandleErrorInChain for OnError
type Fut = Box<dyn Future<Error = Error, Item = (Connection, bool)> + Send + 'static, Global>
source§fn handle_error(
&self,
con: Connection,
_msg_idx: usize,
_error: &LogicError
) -> Self::Fut
fn handle_error(
&self,
con: Connection,
_msg_idx: usize,
_error: &LogicError
) -> Self::Fut
handle the error on given connection for the
msg_idx
-ed command
given the given logic error Read more