Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 25 variants Set { name: String, value: String, }, Unset(String), Toggle(String), Query(String), Bind { menu: Menu, key: String, function: String, }, Macro { menu: Menu, key: String, seq: String, }, Color { object: String, fg: String, bg: String, pattern: Option<String>, }, Ignore(Vec<String>), Unignore(Vec<String>), Uncolor { object: String, pattern: Option<String>, }, Unhook(String), Unmailboxes(Vec<String>), Unalias(Vec<String>), Reset(String), Alternates(Vec<String>), Unalternates(Vec<String>), AutoView(Vec<String>), UnAutoView(Vec<String>), AlternativeOrder(Vec<String>), UnAlternativeOrder(Vec<String>), MyHdr(String), UnMyHdr(Vec<String>), Alias { nick: String, expansion: String, }, Push(String), Exec(String),
}
Expand description

One command off the : prompt. A single line can yield several (set a=1 b=2 is two assignments, like mutt).

Variants§

§

Set

Fields

§name: String
§value: String
§

Unset(String)

§

Toggle(String)

§

Query(String)

set name?: report the value instead of changing it.

§

Bind

Fields

§menu: Menu
§function: String
§

Macro

Fields

§menu: Menu
§

Color

Fields

§object: String
§pattern: Option<String>
§

Ignore(Vec<String>)

§

Unignore(Vec<String>)

§

Uncolor

mutt’s uncolor / unmono: drop what a color line put in. * as the pattern drops every rule of the object.

Fields

§object: String
§pattern: Option<String>
§

Unhook(String)

mutt’s unhook: drop every hook of a type, or all of them (*).

§

Unmailboxes(Vec<String>)

mutt’s unmailboxes: forget watched mailboxes, or all (*).

§

Unalias(Vec<String>)

mutt’s unalias: drop aliases from the alias file, or all (*).

§

Reset(String)

mutt’s reset: a setting back to its default.

§

Alternates(Vec<String>)

mutt’s alternates / unalternates: regexes for my other addresses (* un-does the lot).

§

Unalternates(Vec<String>)

§

AutoView(Vec<String>)

mutt’s auto_view / unauto_view: MIME types rendered inline by a filter. auto_view leaves the command to mailcap (an empty [filters] value); unauto_view * clears the lot.

§

UnAutoView(Vec<String>)

§

AlternativeOrder(Vec<String>)

mutt’s alternative_order / unalternative_order: which part of a multipart/alternative wins (* un-does the lot).

§

UnAlternativeOrder(Vec<String>)

§

MyHdr(String)

mutt’s my_hdr: one “Name: value” line for every draft.

§

UnMyHdr(Vec<String>)

unmy_hdr NAME..., or * for all of them.

§

Alias

Fields

§nick: String
§expansion: String
§

Push(String)

Keys fed to the input queue, as a macro sequence.

§

Exec(String)

A function name run directly.

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Command

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Command

Source§

fn eq(&self, other: &Command) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Command

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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, <T as TryFrom<U>>::Error>

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.