#[non_exhaustive]pub struct SpawnInfo {
pub pid: u32,
pub pgid: Option<u32>,
}Expand description
What the crate knows about a child the moment it is spawned.
Delivered to the CodexBuilder::on_spawn observer before the run can
produce output. This lets a supervisor durably record the child while the
run is still in progress.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pid: u32The child’s process id.
pgid: Option<u32>The child’s process group id, when it leads its own group.
None when CodexBuilder::process_group is disabled. In that case
the child shares the parent’s group and its pid must not be passed to
killpg, which would signal the caller’s own process group.
Trait Implementations§
impl Copy for SpawnInfo
impl Eq for SpawnInfo
impl StructuralPartialEq for SpawnInfo
Auto Trait Implementations§
impl Forget for SpawnInfo
impl Freeze for SpawnInfo
impl RefUnwindSafe for SpawnInfo
impl Send for SpawnInfo
impl Sync for SpawnInfo
impl Unpin for SpawnInfo
impl UnsafeUnpin for SpawnInfo
impl UnwindSafe for SpawnInfo
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