Enum imap_proto::types::Response[][src]

#[non_exhaustive]
pub enum Response<'a> {
    Capabilities(Vec<Capability<'a>>),
    Continue {
        code: Option<ResponseCode<'a>>,
        information: Option<Cow<'a, str>>,
    },
    Done {
        tag: RequestId,
        status: Status,
        code: Option<ResponseCode<'a>>,
        information: Option<Cow<'a, str>>,
    },
    Data {
        status: Status,
        code: Option<ResponseCode<'a>>,
        information: Option<Cow<'a, str>>,
    },
    Expunge(u32),
    Vanished {
        earlier: bool,
        uids: Vec<RangeInclusive<u32>>,
    },
    Fetch(u32, Vec<AttributeValue<'a>>),
    MailboxData(MailboxDatum<'a>),
    Quota(Quota<'a>),
    QuotaRoot(QuotaRoot<'a>),
}

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Capabilities

Tuple Fields of Capabilities

0: Vec<Capability<'a>>
Continue

Fields of Continue

code: Option<ResponseCode<'a>>information: Option<Cow<'a, str>>
Done

Fields of Done

tag: RequestIdstatus: Statuscode: Option<ResponseCode<'a>>information: Option<Cow<'a, str>>
Data

Fields of Data

status: Statuscode: Option<ResponseCode<'a>>information: Option<Cow<'a, str>>
Expunge

Tuple Fields of Expunge

0: u32
Vanished

Fields of Vanished

earlier: booluids: Vec<RangeInclusive<u32>>
Fetch

Tuple Fields of Fetch

0: u321: Vec<AttributeValue<'a>>
MailboxData

Tuple Fields of MailboxData

0: MailboxDatum<'a>
Quota

Tuple Fields of Quota

0: Quota<'a>
QuotaRoot

Tuple Fields of QuotaRoot

0: QuotaRoot<'a>

Implementations

Trait Implementations

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 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.