Struct samotop_core::mail::NullDispatch
source · [−]pub struct NullDispatch;
Expand description
Accept all calls, but do nothing.
Combine this with the SessionLogger
for a light-weight debugging server.
Trait Implementations
fn open_mail_body<'a, 's, 'f>(
&'a self,
session: &'s mut SmtpSession
) -> S1Fut<'f, DispatchResult> where
'a: 'f,
's: 'f,
fn open_mail_body<'a, 's, 'f>(
&'a self,
session: &'s mut SmtpSession
) -> S1Fut<'f, DispatchResult> where
'a: 'f,
's: 'f,
If no sink is present, add null sink, accepting all data, doing nothing