pub enum StartMailFailure {
    TerminateSession,
    Rejected,
    InvalidSender,
    StorageExhaustedPermanently,
    StorageExhaustedTemporarily,
    FailedTemporarily,
    InvalidParameter,
    InvalidParameterValue,
}

Variants

TerminateSession

The whole mail transaction failed, subsequent RCPT and DATA will fail 421 Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down)

Rejected

550 Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons)

InvalidSender

553 Requested action not taken: mailbox name not allowed (e.g., mailbox syntax incorrect)

StorageExhaustedPermanently

552 Requested mail action aborted: exceeded storage allocation

StorageExhaustedTemporarily

452 Requested action not taken: insufficient system storage

FailedTemporarily

451 Requested action aborted: local error in processing

InvalidParameter

555 MAIL FROM/RCPT TO parameters not recognized or not implemented

InvalidParameterValue

455 Server unable to accommodate parameters

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.