Struct nix::spawn::PosixSpawnAttr
source · pub struct PosixSpawnAttr { /* private fields */ }
Expand description
A spawn attributes object. See posix_spawnattr_t.
Implementations§
source§impl PosixSpawnAttr
impl PosixSpawnAttr
sourcepub fn init() -> Result<PosixSpawnAttr>
pub fn init() -> Result<PosixSpawnAttr>
Initialize the spawn attributes object. See posix_spawnattr_init.
sourcepub fn reinit(self) -> Result<PosixSpawnAttr>
pub fn reinit(self) -> Result<PosixSpawnAttr>
Reinitialize the spawn attributes object. This is a wrapper around posix_spawnattr_destroy followed by posix_spawnattr_init.
sourcepub fn set_flags(&mut self, flags: PosixSpawnFlags) -> Result<()>
pub fn set_flags(&mut self, flags: PosixSpawnFlags) -> Result<()>
Set spawn flags. See posix_spawnattr_setflags.
sourcepub fn flags(&self) -> Result<PosixSpawnFlags>
pub fn flags(&self) -> Result<PosixSpawnFlags>
Get spawn flags. See posix_spawnattr_getflags.
sourcepub fn set_pgroup(&mut self, pgroup: Pid) -> Result<()>
pub fn set_pgroup(&mut self, pgroup: Pid) -> Result<()>
Set spawn pgroup. See posix_spawnattr_setpgroup.
sourcepub fn pgroup(&self) -> Result<Pid>
pub fn pgroup(&self) -> Result<Pid>
Get spawn pgroup. See posix_spawnattr_getpgroup.
sourcepub fn set_sigdefault(&mut self, sigdefault: &SigSet) -> Result<()>
pub fn set_sigdefault(&mut self, sigdefault: &SigSet) -> Result<()>
Set spawn sigdefault. See posix_spawnattr_setsigdefault.
sourcepub fn sigdefault(&self) -> Result<SigSet>
pub fn sigdefault(&self) -> Result<SigSet>
Get spawn sigdefault. See posix_spawnattr_getsigdefault.
sourcepub fn set_sigmask(&mut self, sigdefault: &SigSet) -> Result<()>
pub fn set_sigmask(&mut self, sigdefault: &SigSet) -> Result<()>
Set spawn sigmask. See posix_spawnattr_setsigmask.
sourcepub fn sigmask(&self) -> Result<SigSet>
pub fn sigmask(&self) -> Result<SigSet>
Get spawn sigmask. See posix_spawnattr_getsigmask.
Trait Implementations§
source§impl Debug for PosixSpawnAttr
impl Debug for PosixSpawnAttr
Auto Trait Implementations§
impl Freeze for PosixSpawnAttr
impl RefUnwindSafe for PosixSpawnAttr
impl Send for PosixSpawnAttr
impl Sync for PosixSpawnAttr
impl Unpin for PosixSpawnAttr
impl UnwindSafe for PosixSpawnAttr
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