Struct samotop_core::mail::DebugService
source · [−]pub struct DebugService;
Expand description
Produce info logs on important e-mail and SMTP events.
The logger will use session service name to mark the logs.
Trait Implementations
Returns the “default value” for a type. Read more
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,
Add a mail data sink to mail transaction. Read more
fn add_recipient<'a, 's, 'f>(
&'a self,
session: &'s mut SmtpSession,
rcpt: Recipient
) -> S2Fut<'f, AddRecipientResult> where
'a: 'f,
's: 'f,
fn add_recipient<'a, 's, 'f>(
&'a self,
session: &'s mut SmtpSession,
rcpt: Recipient
) -> S2Fut<'f, AddRecipientResult> where
'a: 'f,
's: 'f,
Add given RCPT to the list. Here we can immediately add and further processing will stop with success.
Or we can refuse and stop further processing with a failure.
Last option is to return Inconclusive
in which case other MailGuards will have a chance.
If all MailGuards return Inconclusive
, the caller should assume success and add the RCPT to the list. Read more
fn start_mail<'a, 's, 'f>(
&'a self,
session: &'s mut SmtpSession
) -> S2Fut<'f, StartMailResult> where
'a: 'f,
's: 'f,
fn start_mail<'a, 's, 'f>(
&'a self,
session: &'s mut SmtpSession
) -> S2Fut<'f, StartMailResult> where
'a: 'f,
's: 'f,
Open the mail transaction. Here we have the opportunity to check the sender, adjust transaction ID…
impl<T> MailSetup<T> for SessionLogger where
T: AcceptsSessionService + AcceptsGuard + AcceptsDispatch,
impl<T> MailSetup<T> for SessionLogger where
T: AcceptsSessionService + AcceptsGuard + AcceptsDispatch,
fn prepare_session<'a, 'i, 's, 'f>(
&'a self,
_io: &'i mut Box<dyn MayBeTls>,
state: &'s mut SmtpContext
) -> S1Fut<'f, ()> where
'a: 'f,
'i: 'f,
's: 'f,
Auto Trait Implementations
impl RefUnwindSafe for SessionLogger
impl Send for SessionLogger
impl Sync for SessionLogger
impl Unpin for SessionLogger
impl UnwindSafe for SessionLogger
Blanket Implementations
Mutably borrows from an owned value. Read more