pub enum DataResponse<'a> {
Capability(Vec<&'a str>),
List {
flags: Vec<&'a str>,
delimiter: Option<&'a str>,
name: &'a str,
},
Lsub {
flags: Vec<&'a str>,
delimiter: Option<&'a str>,
name: &'a str,
},
Status {
mailbox: &'a str,
items: Vec<StatusItem>,
},
Search(Vec<u32>),
Flags(Vec<&'a str>),
Exists(u32),
Recent(u32),
Expunge(u32),
Fetch {
seq: u32,
attributes: Vec<FetchAttribute<'a>>,
},
Other(&'a [u8]),
}Expand description
An untagged data response (* …).
Variants§
Capability(Vec<&'a str>)
CAPABILITY — the server’s advertised capabilities.
List
LIST — a mailbox returned by the LIST command.
Fields
Lsub
LSUB — a subscribed mailbox returned by the LSUB command.
Fields
Status
STATUS — requested status attributes for a mailbox.
Fields
§
items: Vec<StatusItem>The returned status items.
Search(Vec<u32>)
SEARCH — message numbers (or UIDs) matching a search.
Flags(Vec<&'a str>)
FLAGS — the flags defined in the selected mailbox.
Exists(u32)
EXISTS — the number of messages in the mailbox.
Recent(u32)
RECENT — the number of messages with the \Recent flag.
Expunge(u32)
EXPUNGE — the sequence number of a message that was expunged.
Fetch
FETCH — message data for a single message.
Fields
§
attributes: Vec<FetchAttribute<'a>>The fetched attributes for this message.
Other(&'a [u8])
Unrecognized untagged data response — the raw line bytes (without CRLF).
Trait Implementations§
Source§impl<'a> Debug for DataResponse<'a>
impl<'a> Debug for DataResponse<'a>
impl<'a> Eq for DataResponse<'a>
Source§impl<'a> PartialEq for DataResponse<'a>
impl<'a> PartialEq for DataResponse<'a>
Source§fn eq(&self, other: &DataResponse<'a>) -> bool
fn eq(&self, other: &DataResponse<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for DataResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for DataResponse<'a>
impl<'a> RefUnwindSafe for DataResponse<'a>
impl<'a> Send for DataResponse<'a>
impl<'a> Sync for DataResponse<'a>
impl<'a> Unpin for DataResponse<'a>
impl<'a> UnsafeUnpin for DataResponse<'a>
impl<'a> UnwindSafe for DataResponse<'a>
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
Mutably borrows from an owned value. Read more