Struct PosixSpawnAttr
#[repr(transparent)]
pub struct PosixSpawnAttr { /* private fields */ }
A spawn attributes object. See posix_spawnattr_t.
Implementations
impl PosixSpawnAttr
fn init() -> Result<PosixSpawnAttr>Initialize the spawn attributes object. See posix_spawnattr_init.
fn reinit(self) -> Result<PosixSpawnAttr>Reinitialize the spawn attributes object. This is a wrapper around posix_spawnattr_destroy followed by posix_spawnattr_init.
fn set_flags(&mut self, flags: PosixSpawnFlags) -> Result<()>Set spawn flags. See posix_spawnattr_setflags.
fn flags(&self) -> Result<PosixSpawnFlags>Get spawn flags. See posix_spawnattr_getflags.
fn set_pgroup(&mut self, pgroup: Pid) -> Result<()>Set spawn pgroup. See posix_spawnattr_setpgroup.
fn pgroup(&self) -> Result<Pid>Get spawn pgroup. See posix_spawnattr_getpgroup.
fn set_sigdefault(&mut self, sigdefault: &SigSet) -> Result<()>Set spawn sigdefault. See posix_spawnattr_setsigdefault.
fn sigdefault(&self) -> Result<SigSet>Get spawn sigdefault. See posix_spawnattr_getsigdefault.
fn set_sigmask(&mut self, sigdefault: &SigSet) -> Result<()>Set spawn sigmask. See posix_spawnattr_setsigmask.
fn sigmask(&self) -> Result<SigSet>Get spawn sigmask. See posix_spawnattr_getsigmask.
Trait Implementations
impl Debug for PosixSpawnAttr
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Drop for PosixSpawnAttr
fn drop(&mut self)
Auto Trait Implementations
impl Freeze for PosixSpawnAttr
impl RefUnwindSafe for PosixSpawnAttr
impl Send for PosixSpawnAttr
impl Sync for PosixSpawnAttr
impl Unpin for PosixSpawnAttr
impl UnsafeUnpin for PosixSpawnAttr
impl UnwindSafe for PosixSpawnAttr
Blanket Implementations
impl<T> Any for PosixSpawnAttr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PosixSpawnAttr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PosixSpawnAttr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PosixSpawnAttr
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for PosixSpawnAttr
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PosixSpawnAttr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PosixSpawnAttr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>