pub struct NohupConfig {
pub output_file: Option<String>,
pub wait: bool,
pub cwd: Option<PathBuf>,
pub env: Option<BTreeMap<String, String>>,
}Expand description
Configuration for nohup execution.
Fields§
§output_file: Option<String>File to redirect stdout to when stdout is a terminal.
Default: “nohup.out” in current directory, falls back to $HOME/nohup.out
wait: boolWait for the child process to exit.
cwd: Option<PathBuf>Working directory for the child process.
None means inherit the caller’s current working directory.
env: Option<BTreeMap<String, String>>Environment overrides for the child process.
Values are merged into the inherited environment. v1 does not provide a replace-or-clear environment mode.
Trait Implementations§
Source§impl Clone for NohupConfig
impl Clone for NohupConfig
Source§impl Debug for NohupConfig
impl Debug for NohupConfig
Auto Trait Implementations§
impl Freeze for NohupConfig
impl RefUnwindSafe for NohupConfig
impl Send for NohupConfig
impl Sync for NohupConfig
impl Unpin for NohupConfig
impl UnsafeUnpin for NohupConfig
impl UnwindSafe for NohupConfig
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