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§
fn with_cwd<P>(self, cwd: P) -> Self
fn with_arg<S>(self, arg: S) -> Self
fn with_args<I, S>(self, args: I) -> Self
fn with_env<K, V>(self, key: K, val: V) -> Self
fn run(self) -> Result<()>
fn output(self) -> Result<Vec<u8>>
fn parse_json<T>(self) -> Result<T>where
T: for<'de> Deserialize<'de>,
Object Safety§
This trait is not object safe.