Skip to main content

receiver_main

Macro receiver_main 

Source
macro_rules! receiver_main {
    ($entry:expr) => { ... };
}
Expand description

Defines a helper-process entry point with one ownership-bearing bootstrap.

The supplied closure receives Result<ReceiverBootstrap, SessionFailure> and runs only after the library has attempted the one-shot reservation take. Linux validates and reserves its inherited descriptor in an ELF pre-initializer. macOS consumes its one-shot bootstrap designation from Rust main and scrubs the public marker there; the Mach nonce and parent identity are taken and scrubbed when the receiver session connects. Windows takes and scrubs its pipe, nonce, and parent designation when the receiver session connects from the environment.