#[repr(C)]pub struct Waitmsg {
pub pid: u64,
pub exit_code: i32,
pub _pad: i32,
pub msg: [u8; 64],
}Expand description
Plan 9-inspired exit message written to userspace by SYS_PROC_WAIT.
Layout (C-compatible, 80 bytes total):
pid u64 — task ID of the exited child
exit_code i32 — numeric exit code (0 = success)
_pad i32 — padding for alignment
msg [u8; 64] — null-terminated exit descriptionThe msg field follows Plan 9 convention:
""(empty, or first byte = 0) → process exited normally (code 0)"exit <N>"→ process exited with code N ≠ 0"killed"→ process was killed by signal
Fields§
§pid: u64§exit_code: i32§_pad: i32§msg: [u8; 64]Auto Trait Implementations§
impl Freeze for Waitmsg
impl RefUnwindSafe for Waitmsg
impl Send for Waitmsg
impl Sync for Waitmsg
impl Unpin for Waitmsg
impl UnsafeUnpin for Waitmsg
impl UnwindSafe for Waitmsg
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more