#[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 ClaudeBuilder::on_spawn observer before the run can
produce output, which is the point: a supervisor that records the pid only
after a run finishes has nothing to reconcile when it crashes mid-run.
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 ClaudeBuilder::process_group is disabled, in which case
the child shares the parent’s group and its pid must never be passed to
killpg: that 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 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