Enum melib::imap::ResponseCode
source · 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.
Trait Implementations§
source§impl Debug for ResponseCode
impl Debug for ResponseCode
source§impl Display for ResponseCode
impl Display for ResponseCode
source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
source§fn eq(&self, other: &ResponseCode) -> bool
fn eq(&self, other: &ResponseCode) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ResponseCode
impl StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl Freeze for ResponseCode
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnwindSafe for ResponseCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.