[][src]Enum melib::backends::imap::protocol_parser::ResponseCode

pub enum ResponseCode {
    Alert(String),
    Badcharset(Option<String>),
    Capability,
    Parse(String),
    Permanentflags(String),
    ReadOnly,
    ReadWrite,
    Trycreate,
    Uidnext(UID),
    Uidvalidity(UID),
    Unseen(ImapNum),
}

Variants

Alert(String)

The human-readable text contains a special alert that MUST be presented to the user in a fashion that calls the user's attention to the message.

Badcharset(Option<String>)

Optionally followed by a parenthesized list of charsets. A SEARCH failed because the given charset is not supported by this implementation. If the optional list of charsets is given, this lists the charsets that are supported by this implementation.

Capability

Followed by a list of capabilities. This can appear in the initial OK or PREAUTH response to transmit an initial capabilities list. This makes it unnecessary for a client to send a separate CAPABILITY command if it recognizes this response.

Parse(String)

The human-readable text represents an error in parsing the [RFC-2822] header or [MIME-IMB] headers of a message in the mailbox.

Permanentflags(String)

Followed by a parenthesized list of flags, indicates which of the known flags the client can change permanently. Any flags that are in the FLAGS untagged response, but not the PERMANENTFLAGS list, can not be set permanently. If the client attempts to STORE a flag that is not in the PERMANENTFLAGS list, the server will either ignore the change or store the state change for the remainder of the current session only. The PERMANENTFLAGS list can also include the special flag *, which indicates that it is possible to create new keywords by attempting to store those flags in the mailbox.

ReadOnly

The mailbox is selected read-only, or its access while selected has changed from read-write to read-only.

ReadWrite

The mailbox is selected read-write, or its access while selected has changed from read-only to read-write.

Trycreate

An APPEND or COPY attempt is failing because the target mailbox does not exist (as opposed to some other reason). This is a hint to the client that the operation can succeed if the mailbox is first created by the CREATE command.

Uidnext(UID)

Followed by a decimal number, indicates the next unique identifier value. Refer to section 2.3.1.1 for more information.

Uidvalidity(UID)

Followed by a decimal number, indicates the unique identifier validity value. Refer to section 2.3.1.1 for more information.

Unseen(ImapNum)

Followed by a decimal number, indicates the number of the first message without the \Seen flag set.

Implementations

impl ResponseCode[src]

fn from(val: &[u8]) -> ResponseCode[src]

Trait Implementations

impl Debug for ResponseCode[src]

impl Display for ResponseCode[src]

impl PartialEq<ResponseCode> for ResponseCode[src]

impl StructuralPartialEq for ResponseCode[src]

Auto Trait Implementations

impl RefUnwindSafe for ResponseCode

impl Send for ResponseCode

impl Sync for ResponseCode

impl Unpin for ResponseCode

impl UnwindSafe for ResponseCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]