pub struct Command {
pub program: OsString,
pub args: Vec<OsString>,
pub cwd: Option<PathBuf>,
}Expand description
One command a plugin answered with.
The plugin produced it; this crate copied every byte out of the plugin’s memory before the plugin released it, so what is here belongs to the host.
Fields§
§program: OsStringThe program to run. Empty means the plugin answered success without naming one, which the engine reports – this layer only copies what is there.
args: Vec<OsString>Its arguments, verbatim.
cwd: Option<PathBuf>Where to run it, or None for “the project root”.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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