[][src]Trait samotop_core::service::session::SessionService

pub trait SessionService {
    type Handler: Sink<ReadControl, Error = Error> + Stream<Item = Result<WriteControl>>;
    fn start(&self) -> Self::Handler;
}

A session service handles the SMTP session.

For each connection a new handler is started with a call to start(). This handler will only handle one session and then it will be dropped.

The handler will receive ReadControls from the line and should produce relevant WriteControls to send down the line in response.

Associated Types

Loading content...

Required methods

fn start(&self) -> Self::Handler

Loading content...

Implementors

Loading content...