Skip to main content

NativePhysicalExitCompletion

Trait NativePhysicalExitCompletion 

Source
pub unsafe trait NativePhysicalExitCompletion {
    // Required methods
    fn retained_pidfd(&self) -> BorrowedFd<'_>;
    fn process_id(&self) -> i32;
    fn birth_identity(&self) -> u64;
}
Expand description

Actual physical exit-watch completion carried by a private affine backend receipt, not a caller’s assertion that an exit happened.

§Safety

Implement only on a private type constructed after the real watched birth’s PhysicalExitWatch drain completed, its one physical report was delivered, and all watch failures were excluded. Retain that same pidfs pidfd and IDs. Numerical PID equality, child wait alone, source EOF, or a bool cannot create this receipt. The host implementation additionally checks the actual fd below.

Required Methods§

Source

fn retained_pidfd(&self) -> BorrowedFd<'_>

The same retained watched pidfd, owned by this affine receipt.

Source

fn process_id(&self) -> i32

Actual deterministic/physical root PID of the single-thread domain.

Source

fn birth_identity(&self) -> u64

Independently retained pidfs inode of that watched birth.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§