pub struct SetsidConfig {
pub wait: bool,
pub ctty: bool,
pub cwd: Option<PathBuf>,
pub env: Option<BTreeMap<String, String>>,
}Expand description
Configuration for setsid execution.
Fields§
§wait: boolWait for the child process to exit and return its status.
When false (default), returns immediately after spawning.
When true, waits for child and returns its exit status.
ctty: boolCreate a controlling terminal (ctty) for the new session.
This is a no-op placeholder for compatibility with util-linux setsid -c. Most use cases don’t need this.
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 SetsidConfig
impl Clone for SetsidConfig
Source§impl Debug for SetsidConfig
impl Debug for SetsidConfig
Auto Trait Implementations§
impl Forget for SetsidConfig
impl Freeze for SetsidConfig
impl RefUnwindSafe for SetsidConfig
impl Send for SetsidConfig
impl Sync for SetsidConfig
impl Unpin for SetsidConfig
impl UnsafeUnpin for SetsidConfig
impl UnwindSafe for SetsidConfig
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