pub enum Command {
Show 21 variants User(String), Pass(String), Stat, ListAll, List { msg: u32, }, Retr { msg: u32, }, Dele { msg: u32, }, Noop, Rset, Quit, Apop { name: String, digest: String, }, Top { msg: u32, n: u32, }, UidlAll, Uidl { msg: u32, }, Capa, Stls, AuthAll, Auth { mechanism: String, initial_response: Option<String>, }, Utf8, LangAll, Lang { lang_or_wild: Language, },
}

Variants

User(String)

USER name

Pass(String)

PASS string

Stat

STAT

ListAll

LIST

List

Fields

msg: u32

LIST msg

Retr

Fields

msg: u32

RETR msg

Dele

Fields

msg: u32

DELE msg

Noop

NOOP

Rset

RSET

Quit

QUIT

Apop

Fields

name: String
digest: String

APOP name digest

Top

Fields

msg: u32
n: u32

TOP msg n

UidlAll

UIDL

Uidl

Fields

msg: u32

UIDL msg

Capa

CAPA

Stls

STLS

AuthAll

Auth

Fields

mechanism: String
initial_response: Option<String>

Utf8

LangAll

Lang

Fields

lang_or_wild: Language

Implementations

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.