pub struct LaunchEnv<'a> {
pub terminal: Option<String>,
pub desktop: Option<String>,
pub visual: Option<String>,
pub editor: Option<String>,
pub which: &'a dyn Fn(&str) -> bool,
}Expand description
The parts of the environment that decide which terminal to use.
Fields§
§terminal: Option<String>$TERMINAL, the user’s explicit choice.
desktop: Option<String>$XDG_CURRENT_DESKTOP, colon-separated (ubuntu:GNOME).
visual: Option<String>$VISUAL, the preferred editor.
editor: Option<String>$EDITOR, used when $VISUAL is unset.
which: &'a dyn Fn(&str) -> boolWhether a program can be started: a name is looked up on PATH, a
path is checked directly.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LaunchEnv<'a>
impl<'a> !Send for LaunchEnv<'a>
impl<'a> !Sync for LaunchEnv<'a>
impl<'a> !UnwindSafe for LaunchEnv<'a>
impl<'a> Forget for LaunchEnv<'a>
impl<'a> Freeze for LaunchEnv<'a>
impl<'a> Move for LaunchEnv<'a>
impl<'a> Unpin for LaunchEnv<'a>
impl<'a> UnsafeUnpin for LaunchEnv<'a>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'a dyn Fn(&str) -> bool: UnsafeUnpin,
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