pub trait OnMail {
    fn on_mail<'life0, 'life1, 'async_trait, S>(
        &'life0 mut self,
        conn: &'life1 mut Connection<S>,
        mail: Box<MailContext>,
        message: MessageBody,
        queue_manager: Arc<dyn GenericQueueManager>
    ) -> Pin<Box<dyn Future<Output = CodeID> + Send + 'async_trait>>
    where
        S: 'async_trait + AsyncRead + AsyncWrite + Send + Unpin + Debug,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

will be executed once the email is received.

Required Methods

the server executes this function once the email as been received.

Implementors