Enum milter::Status[][src]

pub enum Status {
    Continue,
    Reject,
    Tempfail,
    Discard,
    Accept,
    Noreply,
    Skip,
    AllOpts,
}
Expand description

The callback response status.

A response status is returned from all milter callbacks. It controls whether and how processing of some entity is to proceed; ‘entity’ signifies either connection, message, or recipient, according to which protocol stage the status is returned from.

Variants

Continue

Proceed to the next stage. This is the neutral, default response.

Reject

Reject the entity being processed.

Tempfail

Reject the entity being processed with a temporary failure (client may retry).

Discard

Accept the entity being processed but discard the message.

Accept

Accept the entity being processed.

Noreply

Do not send a reply to the MTA. When negotiated for a particular stage, this status must always be used.

This status is only available if it has been negotiated beforehand.

Skip

Skip further (repeated) calls to this callback. This is useful in the body stage, where potentially costly transmission of body content may be cut short once the milter has received enough data.

This status is only available if it has been negotiated beforehand.

AllOpts

A special status indication used only in negotiation: enable all actions and protocol stages the MTA has to offer.

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

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. 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.