pub struct RootCommand {
pub program: OsString,
pub args: Vec<OsString>,
pub env: Vec<(OsString, OsString)>,
}Expand description
Ready-to-spawn invocation that runs the target command as root.
Fields§
§program: OsStringThe escalator (or sudo) to launch.
args: Vec<OsString>Its arguments, ending with the original argv.
env: Vec<(OsString, OsString)>Extra environment to set on the spawned process. Only the no-TTY macOS
sudo -A path uses this (to point SUDO_ASKPASS at our helper); empty
everywhere else.
Auto Trait Implementations§
impl Freeze for RootCommand
impl RefUnwindSafe for RootCommand
impl Send for RootCommand
impl Sync for RootCommand
impl Unpin for RootCommand
impl UnsafeUnpin for RootCommand
impl UnwindSafe for RootCommand
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