pub enum WaitTarget<'fd> {
AnyChild,
Pid(Pid),
ProcessGroup(Pid),
AnyProcessGroup,
PidFd(BorrowedFd<'fd>),
}Expand description
Cible d’un appel waitid.
L’enum encode à la fois idtype et id du syscall, en évitant les
combinaisons invalides (P_PIDFD avec un id qui n’est pas un fd, etc.).
Variants§
AnyChild
P_ALL — n’importe quel enfant.
Pid(Pid)
P_PID — un enfant désigné par son PID.
ProcessGroup(Pid)
P_PGID — n’importe quel processus du groupe désigné.
AnyProcessGroup
P_PGID avec id = 0 — le groupe de processus du caller.
PidFd(BorrowedFd<'fd>)
P_PIDFD — l’enfant référencé par le pidfd.
Trait Implementations§
Source§impl<'fd> Clone for WaitTarget<'fd>
impl<'fd> Clone for WaitTarget<'fd>
Source§fn clone(&self) -> WaitTarget<'fd>
fn clone(&self) -> WaitTarget<'fd>
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 moreimpl<'fd> Copy for WaitTarget<'fd>
Auto Trait Implementations§
impl<'fd> Freeze for WaitTarget<'fd>
impl<'fd> RefUnwindSafe for WaitTarget<'fd>
impl<'fd> Send for WaitTarget<'fd>
impl<'fd> Sync for WaitTarget<'fd>
impl<'fd> Unpin for WaitTarget<'fd>
impl<'fd> UnsafeUnpin for WaitTarget<'fd>
impl<'fd> UnwindSafe for WaitTarget<'fd>
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