pub struct Exec;Expand description
/exec(command) — run a shell command and capture output.
/exec(cargo test) — run, capture stdout/stderr.
/exec(cargo test).verbose — forward stderr to terminal in real time.
This is the only builtin that spawns a subprocess.
Trait Implementations§
Source§impl SlashCommand for Exec
impl SlashCommand for Exec
Auto Trait Implementations§
impl Freeze for Exec
impl RefUnwindSafe for Exec
impl Send for Exec
impl Sync for Exec
impl Unpin for Exec
impl UnsafeUnpin for Exec
impl UnwindSafe for Exec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more