Skip to main content

Ui

Struct Ui 

Source
pub struct Ui {
Show 18 fields pub theme: Option<String>, pub status_format: Option<String>, pub beep: bool, pub beep_new: bool, pub wait_key: Option<bool>, pub set_title: Option<bool>, pub title_format: Option<String>, pub history_file: Option<String>, pub status_on_top: Option<bool>, pub arrow_cursor: Option<bool>, pub menu_scroll: Option<bool>, pub menu_context: usize, pub menu_move_off: Option<bool>, pub help: Option<bool>, pub sort_browser: Option<String>, pub error_history: usize, pub status_chars: Option<String>, pub save_history: Option<usize>,
}

Fields§

§theme: Option<String>§status_format: Option<String>

mutt’s status_format for the bottom line (see format::DEFAULT_STATUS_FORMAT for the specifiers).

§beep: bool

Ring the terminal bell on error statuses (mutt’s $beep).

§beep_new: bool

mutt’s $beep_new: ring it when mail arrives, too. Off by default, as in mutt.

§wait_key: Option<bool>

mutt’s $wait_key: a shell escape ends with “Press Enter to continue”, so whatever it printed can be read before the index paints over it. True unless set otherwise, as in mutt.

§set_title: Option<bool>

mutt’s $ts_enabled: set the terminal title (and icon) while running. Off by default, as in mutt.

§title_format: Option<String>

mutt’s $ts_status_format: the title’s format, the same specifiers as status_format. Defaults to “rmut: %f”.

§history_file: Option<String>

mutt’s $history_file: where prompt history persists across sessions. Unset means in-memory only, as rmut was before.

§status_on_top: Option<bool>

mutt’s $status_on_top: the status bar (and message line) sit at the top, under the help bar, rather than the bottom. Off by default, as in mutt.

§arrow_cursor: Option<bool>

mutt’s $arrow_cursor: mark the selected row with an arrow instead of reverse video. Off by default, as in mutt.

§menu_scroll: Option<bool>

mutt’s $menu_scroll: the index scrolls a line at a time when the cursor leaves the screen; false shows the next page instead. On by default here (rmut always scrolled), where mutt pages.

§menu_context: usize

mutt’s $menu_context: lines kept in view beyond the cursor when the index scrolls or pages. 0 by default.

§menu_move_off: Option<bool>

mutt’s $menu_move_off: the last message may scroll up past the bottom of the screen; false keeps the index bottom-stuck once it fills the screen. True unless set otherwise.

§help: Option<bool>

mutt’s $help: the key-help bar on the top line. True unless set otherwise.

§sort_browser: Option<String>

mutt’s $sort_browser: the folder browser’s order: “alpha” (the default), “count” / “unread” (by new-mail count), “date” (by the maildir’s change time), “unsorted” (as configured, then as found). A “reverse-” prefix flips it. “size” reads as alpha.

§error_history: usize

mutt’s $error_history: how many past errors error-history shows. 0 disables it. 30 by default, as in mutt.

§status_chars: Option<String>

mutt’s $status_chars: the characters %r shows for the mailbox state — [0] unchanged, [1] changed (needs sync), [2] read-only. Unset keeps rmut’s own (nothing / * / %).

§save_history: Option<usize>

mutt’s $save_history: entries kept per history bucket in the file. Defaults to 100 (rmut’s in-memory cap).

Trait Implementations§

Source§

impl Clone for Ui

Source§

fn clone(&self) -> Ui

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 Ui

Source§

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

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

impl Default for Ui

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Ui
where Ui: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Freeze for Ui

§

impl RefUnwindSafe for Ui

§

impl Send for Ui

§

impl Sync for Ui

§

impl Unpin for Ui

§

impl UnsafeUnpin for Ui

§

impl UnwindSafe for Ui

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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, !>

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.