Skip to main content

Job

Enum Job 

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

Fields

§flags: Vec<(PathBuf, Flags)>
§deletes: Vec<PathBuf>
§

CopyToFolder

$trash: UID COPY before a purge.

Fields

§paths: Vec<PathBuf>
§mailbox: String
§

Append

APPEND: into a named folder, or into the account’s Sent when no name is given (an Fcc).

Fields

§mailbox: Option<String>
§flags: Flags
§body: Vec<u8>
§

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§

Source§

impl Job

Source

pub fn what(&self) -> &'static str

What to say while it runs, and in anything that goes wrong.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.