Trait re_dev_tools::build_search_index::util::CommandExt

source ·
pub trait CommandExt {
    // Required methods
    fn with_cwd<P>(self, cwd: P) -> Self
       where P: AsRef<Path>;
    fn with_arg<S>(self, arg: S) -> Self
       where S: AsRef<OsStr>;
    fn with_args<I, S>(self, args: I) -> Self
       where I: IntoIterator<Item = S>,
             S: AsRef<OsStr>;
    fn with_env<K, V>(self, key: K, val: V) -> Self
       where K: AsRef<OsStr>,
             V: AsRef<OsStr>;
    fn run(self) -> Result<()>;
    fn output(self) -> Result<Vec<u8>>;
    fn parse_json<T>(self) -> Result<T>
       where T: for<'de> Deserialize<'de>;
}

Required Methods§

source

fn with_cwd<P>(self, cwd: P) -> Self
where P: AsRef<Path>,

source

fn with_arg<S>(self, arg: S) -> Self
where S: AsRef<OsStr>,

source

fn with_args<I, S>(self, args: I) -> Self
where I: IntoIterator<Item = S>, S: AsRef<OsStr>,

source

fn with_env<K, V>(self, key: K, val: V) -> Self
where K: AsRef<OsStr>, V: AsRef<OsStr>,

source

fn run(self) -> Result<()>

source

fn output(self) -> Result<Vec<u8>>

source

fn parse_json<T>(self) -> Result<T>
where T: for<'de> Deserialize<'de>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CommandExt for Command

source§

fn with_cwd<P>(self, cwd: P) -> Self
where P: AsRef<Path>,

source§

fn with_arg<S>(self, arg: S) -> Self
where S: AsRef<OsStr>,

source§

fn with_args<I, S>(self, args: I) -> Self
where I: IntoIterator<Item = S>, S: AsRef<OsStr>,

source§

fn with_env<K, V>(self, key: K, val: V) -> Self
where K: AsRef<OsStr>, V: AsRef<OsStr>,

source§

fn run(self) -> Result<()>

source§

fn output(self) -> Result<Vec<u8>>

source§

fn parse_json<T>(self) -> Result<T>
where T: for<'de> Deserialize<'de>,

Implementors§