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§fn clone(&self) -> SetsidConfig
fn clone(&self) -> SetsidConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetsidConfig
impl Debug for SetsidConfig
Source§impl Default for SetsidConfig
impl Default for SetsidConfig
Source§fn default() -> SetsidConfig
fn default() -> SetsidConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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