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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Add self as an ESMTP service so it can configure service name for each session

Use a given name as a service name in the session.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.