pub struct ProcessProgram { /* private fields */ }Expand description
Executable and fixed arguments for an isolated plugin. 隔离插件使用的程序和固定参数。
Implementations§
Source§impl ProcessProgram
impl ProcessProgram
Sourcepub fn new(executable: impl Into<PathBuf>) -> Self
pub fn new(executable: impl Into<PathBuf>) -> Self
Start a program specification with no fixed arguments. 以无固定参数开始描述一个程序。
Sourcepub fn argument(self, argument: impl Into<String>) -> Self
pub fn argument(self, argument: impl Into<String>) -> Self
Append one fixed argument, passed before every operation name. 追加一个固定参数,它排在每个操作名之前。
Sourcepub fn executable(&self) -> &Path
pub fn executable(&self) -> &Path
The configured executable path, before staging. 配置的可执行文件路径,尚未暂存。
Trait Implementations§
Source§impl Clone for ProcessProgram
impl Clone for ProcessProgram
Auto Trait Implementations§
impl Freeze for ProcessProgram
impl RefUnwindSafe for ProcessProgram
impl Send for ProcessProgram
impl Sync for ProcessProgram
impl Unpin for ProcessProgram
impl UnsafeUnpin for ProcessProgram
impl UnwindSafe for ProcessProgram
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