pub enum Job {
FetchBodies(Vec<PathBuf>),
Sync {
flags: Vec<(PathBuf, Flags)>,
deletes: Vec<PathBuf>,
},
CopyToFolder {
paths: Vec<PathBuf>,
mailbox: String,
},
Append {
mailbox: Option<String>,
flags: Flags,
body: Vec<u8>,
},
CheckNew,
Folders,
Unseen(Vec<String>),
SearchBody(String),
Switch(String),
Manage(Manage),
}Expand description
What the session asks the connection to do.
Variants§
FetchBodies(Vec<PathBuf>)
Complete the cached messages whose files hold headers only.
Sync
A $ sync: flag changes first, then the purge.
CopyToFolder
$trash: UID COPY before a purge.
Append
APPEND: into a named folder, or into the account’s Sent when no name is given (an Fcc).
CheckNew
The poll tick: has anything happened on the server?
Folders
The folder browser’s list, with UNSEEN counts.
Unseen(Vec<String>)
The unread counts of these folders, for a sidebar.
SearchBody(String)
Server-side ~b: which UIDs hold this text.
Switch(String)
Another folder of the same account, on this connection.
Manage(Manage)
mutt’s folder management on the open account.
Implementations§
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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