Skip to main content

Request

Enum Request 

Source
pub enum Request {
    Quit,
    ConfigChanged,
    Command(Command),
    MailboxesChanged,
    ShowMessage(Box<MessageView>),
    ShowDraft,
    Mailto(Mailto),
    EditFile(PathBuf),
    Shell(String),
    Suspend,
    Editor(Compose),
}
Expand description

Something only the front end can do, handed back for it to honour or refuse.

Variants§

§

Quit

Nothing is pending; the session is done being driven.

§

ConfigChanged

The config moved: whatever the front end derives from it (the colours, the key tables) wants rebuilding.

§

Command(Command)

A command line the session does not handle, because it binds a key, queues one, or runs a function.

§

MailboxesChanged

The mailbox counts moved: a front end showing them (a sidebar) wants to redraw.

§

ShowMessage(Box<MessageView>)

A message is ready to read: show it however messages are shown (mutt puts it in the pager).

§

ShowDraft

The draft is back in the front end’s hands: put it on screen again, however drafts are shown.

§

Mailto(Mailto)

A mailto: to compose to, the way one on the command line is (mutt’s list-action landed on a mailto: header).

§

EditFile(PathBuf)

Hand this file to the editor, then come back to the compose menu (mutt’s new-mime made it).

§

Shell(String)

Run a shell command with the display stood down, mutt’s !.

§

Suspend

Stop, and pick the display back up when the job resumes.

§

Editor(Compose)

Open an editor on this draft, and put it back on screen afterwards. Only the front end knows how to stand its display down for one.

Auto Trait Implementations§

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.