Struct samotop_core::mail::Name
source · [−]pub struct Name { /* private fields */ }
Expand description
MailSetup that uses the given service name for a session. It can also attach the instance ID and session ID for better diagnostics.
Using the default instance or setting name to empty string will reuse the incoming service name already set.
Implementations
Construct a name MailSetup
to use the given service name.
This name is used in SMTP responses and will be seen in logs.
It is also used to identify a mail transaction.
Switch if instance ID should be included in the service name
Switch if instance ID should be included in the service name
Trait Implementations
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,
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,
Use a given name as a service name in the session.