[−][src]Enum broot::launchable::Launchable
description of a possible launch of an external program A launchable can only be executed on end of life of broot.
Variants
just print something on stdout on end of broot
Fields of Printer
to_print: String
print the tree on end of broot
execute an external program
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,
cols: Cols,
ext_colors: ExtColorMap
) -> Launchable
[src]
tree: &Tree,
screen: Screen,
style_map: StyleMap,
cols: Cols,
ext_colors: ExtColorMap
) -> Launchable
pub fn program(
parts: Vec<String>,
working_dir: Option<PathBuf>
) -> Result<Launchable>
[src]
parts: Vec<String>,
working_dir: Option<PathBuf>
) -> Result<Launchable>
pub fn execute(&self, w: Option<&mut W>) -> Result<(), ProgramError>
[src]
Trait Implementations
impl Debug for Launchable
[src]
impl From<Launchable> for AppStateCmdResult
[src]
fn from(launchable: Launchable) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Launchable
impl Send for Launchable
impl Sync for Launchable
impl Unpin for Launchable
impl UnwindSafe for Launchable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,