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§
Source§impl Clone for SessionLogger
impl Clone for SessionLogger
Source§fn clone(&self) -> SessionLogger
fn clone(&self) -> SessionLogger
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionLogger
impl Debug for SessionLogger
Source§impl Default for SessionLogger
impl Default for SessionLogger
Source§fn default() -> SessionLogger
fn default() -> SessionLogger
Returns the “default value” for a type. Read more
Source§impl MailDispatch for SessionLogger
impl MailDispatch for SessionLogger
Source§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
Source§impl MailGuard for SessionLogger
impl MailGuard for SessionLogger
Source§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.Source§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…
Source§impl<T> MailSetup<T> for SessionLogger
impl<T> MailSetup<T> for SessionLogger
Source§impl SessionService for SessionLogger
impl SessionService for SessionLogger
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 Freeze for SessionLogger
impl RefUnwindSafe for SessionLogger
impl Send for SessionLogger
impl Sync for SessionLogger
impl Unpin for SessionLogger
impl UnwindSafe for SessionLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more