#[non_exhaustive]pub enum WaitId<'a> {
All,
Pid(Pid),
Pgid(Option<Pid>),
PidFd(BorrowedFd<'a>),
}
Expand description
The identifier to wait on in a call to waitid
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Wait on all processes.
Pid(Pid)
Wait for a specific process ID.
Pgid(Option<Pid>)
Wait for a specific process group ID, or the calling process’ group ID.
PidFd(BorrowedFd<'a>)
Wait for a specific process file descriptor.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WaitId<'a>
impl<'a> RefUnwindSafe for WaitId<'a>
impl<'a> Send for WaitId<'a>
impl<'a> Sync for WaitId<'a>
impl<'a> Unpin for WaitId<'a>
impl<'a> UnwindSafe for WaitId<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)