Enum broot::launchable::Launchable[][src]

pub enum Launchable {
    Printer {
        to_print: String,
    },
    TreePrinter {
        tree: Box<Tree>,
        skin: Box<StyleMap>,
        ext_colors: ExtColorMap,
        width: u16,
        height: u16,
    },
    Program {
        exe: String,
        args: Vec<String>,
        working_dir: Option<PathBuf>,
        mouse_capture_disabled: bool,
    },
    SystemOpen {
        path: PathBuf,
    },
}

description of a possible launch of an external program A launchable can only be executed on end of life of broot.

Variants

Printer

just print something on stdout on end of broot

Fields of Printer

to_print: String
TreePrinter

print the tree on end of broot

Fields of TreePrinter

tree: Box<Tree>skin: Box<StyleMap>ext_colors: ExtColorMapwidth: u16height: u16
Program

execute an external program

Fields of Program

exe: Stringargs: Vec<String>working_dir: Option<PathBuf>mouse_capture_disabled: bool
SystemOpen

open a path

Fields of SystemOpen

path: PathBuf

Implementations

impl Launchable[src]

pub fn opener(path: PathBuf) -> Launchable[src]

pub fn printer(to_print: String) -> Launchable[src]

pub fn tree_printer(
    tree: &Tree,
    screen: Screen,
    style_map: StyleMap,
    ext_colors: ExtColorMap
) -> Launchable
[src]

pub fn program(
    parts: Vec<String>,
    working_dir: Option<PathBuf>,
    con: &AppContext
) -> Result<Launchable>
[src]

pub fn execute(&self, w: Option<&mut W>) -> Result<(), ProgramError>[src]

Trait Implementations

impl Debug for Launchable[src]

impl From<Launchable> for AppStateCmdResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,