[][src]Trait new_tokio_smtp::chain::HandleErrorInChain

pub trait HandleErrorInChain: Send + Sync + 'static {
    type Fut: Future<Item = (Connection, bool), Error = Error> + Send;
    fn handle_error(
        &self,
        con: Connection,
        msg_idx: usize,
        logic_error: &LogicError
    ) -> Self::Fut; }

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

type Fut: Future<Item = (Connection, bool), Error = Error> + Send

Loading content...

Required methods

fn handle_error(
    &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

Loading content...

Implementors

impl HandleErrorInChain for OnError[src]

type Fut = Box<dyn Future<Item = (Connection, bool), Error = Error> + Send>

Loading content...