Trait samotop::service::SessionService [−][src]
pub trait SessionService { type Handler; fn start(&self, tls_conf: TlsControll) -> Self::Handler; }
A session service handles the Samotop session
Associated Types
type Handler
Required Methods
fn start(&self, tls_conf: TlsControll) -> Self::Handler
Implementors
impl<S, M, MFut, GFut> SessionService for StatefulSessionService<S> where
S: NamedService + Clone,
S: MailGuard<Future = GFut>,
S: MailQueue<MailFuture = MFut, Mail = M>,
MFut: Future<Item = Option<M>>,
GFut: Future<Item = AcceptRecipientResult>,
M: Mail,
M: Sink<SinkItem = Bytes, SinkError = Error>, type Handler = StatefulSessionHandler<S, M, MFut, GFut>;