[−][src]Trait new_tokio_smtp::chain::HandleErrorInChain
implement this trait for custom error in chain handling
e.g. a smtp allows failing some of the RCPT
command in
a single mail transaction. The default handling won't allow
this but a custom implementation could.
Associated Types
Loading content...Required methods
fn handle_error(
&self,
con: Connection,
msg_idx: usize,
logic_error: &LogicError
) -> Self::Fut
&self,
con: Connection,
msg_idx: usize,
logic_error: &LogicError
) -> Self::Fut
handle the error on given connection for the msg_idx
-ed command
given the given logic error
Implementors
impl HandleErrorInChain for OnError
[src]
type Fut = Box<dyn Future<Item = (Connection, bool), Error = Error> + Send>
fn handle_error(
&self,
con: Connection,
_msg_idx: usize,
_error: &LogicError
) -> Self::Fut
[src]
&self,
con: Connection,
_msg_idx: usize,
_error: &LogicError
) -> Self::Fut