#[repr(C)]pub struct PmpxCommand {
pub program: PmpxStr,
pub args: *const PmpxStr,
pub args_len: usize,
pub cwd: PmpxStr,
}Expand description
跨边界的命令描述。
由插件填充、由插件释放(free_command);宿主只读。
Fields§
§program: PmpxStr可执行文件。
args: *const PmpxStr参数数组,元素个数为 args_len。
args_len: usizeargs 的元素个数。
cwd: PmpxStr工作目录覆盖。len == 0 表示用宿主给的项目根。
Trait Implementations§
Source§impl Clone for PmpxCommand
impl Clone for PmpxCommand
impl Copy for PmpxCommand
Source§impl Debug for PmpxCommand
impl Debug for PmpxCommand
impl Sync for PmpxCommand
Auto Trait Implementations§
impl !Send for PmpxCommand
impl Freeze for PmpxCommand
impl RefUnwindSafe for PmpxCommand
impl Unpin for PmpxCommand
impl UnsafeUnpin for PmpxCommand
impl UnwindSafe for PmpxCommand
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