[][src]Enum broot::external::Launchable

pub enum Launchable {
    Printer {
        to_print: String,
    },
    TreePrinter {
        tree: Box<Tree>,
        skin: Box<Skin>,
        width: u16,
    },
    Program {
        exe: String,
        args: Vec<String>,
    },
    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

Fields of Printer

to_print: String
TreePrinter

Fields of TreePrinter

tree: Box<Tree>skin: Box<Skin>width: u16
Program

Fields of Program

exe: Stringargs: Vec<String>
SystemOpen

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, no_style: bool) -> Launchable[src]

pub fn program(parts: Vec<String>) -> Result<Launchable>[src]

pub fn execute(&self) -> 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, 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.